@verma-consulting/common-library 0.1.14 → 0.1.15

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 CHANGED
@@ -103,7 +103,7 @@ interface UserInterface {
103
103
  usagesCreated?: UsageInterface[];
104
104
  productsCreated?: ProductInterface[];
105
105
  subscriptionsCreated?: SubscriptionInterface[];
106
- paymentsCreated?: PaymentInterface[];
106
+ paymentsCreated?: ChargeInterface[];
107
107
  permissions?: PermissionInterface[];
108
108
  notifications?: NotificationInterface[];
109
109
  avatar?: FileInterface;
@@ -240,7 +240,7 @@ interface ProductInterface {
240
240
  price?: PriceInterface;
241
241
  client?: ClientInterface;
242
242
  subscriptions?: SubscriptionInterface[];
243
- payments?: PaymentInterface[];
243
+ payments?: ChargeInterface[];
244
244
  poolId?: string;
245
245
  pool?: PoolInterface;
246
246
  organizationId?: string;
@@ -338,7 +338,7 @@ interface PauseCollectionInterface {
338
338
  behavior?: string;
339
339
  resumesAt?: Date;
340
340
  }
341
- interface PaymentInterface {
341
+ interface ChargeInterface {
342
342
  id?: string;
343
343
  createdAt?: Date;
344
344
  updatedAt?: Date;
@@ -582,7 +582,7 @@ interface ClientInterface {
582
582
  tasks?: TaskInterface[];
583
583
  products?: ProductInterface[];
584
584
  subscriptions?: SubscriptionInterface[];
585
- payments?: PaymentInterface[];
585
+ payments?: ChargeInterface[];
586
586
  contactIds?: string[];
587
587
  dealIds?: string[];
588
588
  invoiceIds?: string[];
@@ -758,7 +758,7 @@ interface InvoiceInterface {
758
758
  poolId?: string | null;
759
759
  accountOwnerId?: string;
760
760
  dealId?: string;
761
- payment?: PaymentInterface;
761
+ payment?: ChargeInterface;
762
762
  contents?: ContentInterface[];
763
763
  inventories?: InventoryInterface[];
764
764
  inventoryIds?: string[];
@@ -885,7 +885,7 @@ interface PoolInterface {
885
885
  lead?: LeadInterface;
886
886
  product?: ProductInterface;
887
887
  subscription?: SubscriptionInterface;
888
- payment?: PaymentInterface;
888
+ payment?: ChargeInterface;
889
889
  campaign?: CampaignInterface;
890
890
  invoice?: InvoiceInterface;
891
891
  engagement?: EngagementInterface;
@@ -1204,6 +1204,7 @@ declare enum paymentStatus {
1204
1204
  declare enum OrganizationFeatures {
1205
1205
  clients = "clients",
1206
1206
  tasks = "tasks",
1207
+ products = "products",
1207
1208
  inventories = "inventories",
1208
1209
  invoices = "invoices",
1209
1210
  leads = "leads",
@@ -1211,9 +1212,10 @@ declare enum OrganizationFeatures {
1211
1212
  contacts = "contacts",
1212
1213
  engagements = "engagements",
1213
1214
  campaigns = "campaigns",
1214
- products = "products",
1215
1215
  subscriptions = "subscriptions",
1216
- payments = "payments",
1216
+ charges = "charges",
1217
+ paymentMethods = "paymentMethods",
1218
+ disputes = "disputes",
1217
1219
  dataPools = "dataPools",
1218
1220
  lists = "lists",
1219
1221
  reports = "reports"
@@ -1647,6 +1649,7 @@ declare const constants: {
1647
1649
  MODEL_APP_MAPPING: {
1648
1650
  clients: string;
1649
1651
  inventories: string;
1652
+ products: string;
1650
1653
  invoices: string;
1651
1654
  tasks: string;
1652
1655
  campaigns: string;
@@ -1654,9 +1657,10 @@ declare const constants: {
1654
1657
  deals: string;
1655
1658
  engagements: string;
1656
1659
  leads: string;
1657
- payments: string;
1658
- products: string;
1660
+ charges: string;
1659
1661
  subscriptions: string;
1662
+ paymentMethods: string;
1663
+ disputes: string;
1660
1664
  };
1661
1665
  NOT_INCLUDED_FIELDS: string[];
1662
1666
  GQL_FIELD_TYPE: {
@@ -1689,14 +1693,16 @@ declare const constants: {
1689
1693
  campaigns: string;
1690
1694
  tasks: string;
1691
1695
  clients: string;
1696
+ products: string;
1692
1697
  inventories: string;
1693
1698
  deals: string;
1694
1699
  invoices: string;
1695
1700
  contacts: string;
1696
1701
  engagements: string;
1697
- products: string;
1698
1702
  subscriptions: string;
1699
- payments: string;
1703
+ charges: string;
1704
+ paymentMethods: string;
1705
+ disputes: string;
1700
1706
  content: string[];
1701
1707
  relations: string[];
1702
1708
  financials: string[];
@@ -1718,12 +1724,12 @@ declare const constants: {
1718
1724
  code: string;
1719
1725
  label: string;
1720
1726
  phone: string;
1721
- suggested?: undefined;
1727
+ suggested: boolean;
1722
1728
  } | {
1723
1729
  code: string;
1724
1730
  label: string;
1725
1731
  phone: string;
1726
- suggested: boolean;
1732
+ suggested?: undefined;
1727
1733
  })[];
1728
1734
  CURRENCIES: {
1729
1735
  aed: string;
@@ -2374,7 +2380,7 @@ declare const defaults: {
2374
2380
  missingPaymentMethod: string;
2375
2381
  };
2376
2382
  };
2377
- payments: {
2383
+ charges: {
2378
2384
  name: string;
2379
2385
  description: string;
2380
2386
  status: string;
@@ -2589,7 +2595,11 @@ declare const defaultsWithTypes: {
2589
2595
  default: string;
2590
2596
  type: string;
2591
2597
  };
2592
- contactName: {
2598
+ individualName: {
2599
+ default: string;
2600
+ type: string;
2601
+ };
2602
+ businessName: {
2593
2603
  default: string;
2594
2604
  type: string;
2595
2605
  };
@@ -3486,7 +3496,7 @@ declare const defaultsWithTypes: {
3486
3496
  };
3487
3497
  };
3488
3498
  };
3489
- payments: {
3499
+ charges: {
3490
3500
  name: {
3491
3501
  default: string;
3492
3502
  type: string;
@@ -3862,4 +3872,4 @@ declare const defaultsWithTypes: {
3862
3872
  };
3863
3873
  };
3864
3874
 
3865
- 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, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaults, defaultsWithTypes, formatPhoneNumber, getRandomArbitrary, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, paymentCancellationReason, paymentStatus, prettifyString, productType, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxExempt, toCurrencyValue, userRole, userSource, userStatus, validEmail };
3875
+ export { type ActivityInterface, type AddressInterface, type AnalyticsQueryInterface, AppMode, type AutomaticTaxInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, CategoryType, type ChargeInterface, 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 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, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaults, defaultsWithTypes, formatPhoneNumber, getRandomArbitrary, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, paymentCancellationReason, paymentStatus, prettifyString, productType, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxExempt, toCurrencyValue, userRole, userSource, userStatus, validEmail };
package/dist/index.d.ts CHANGED
@@ -103,7 +103,7 @@ interface UserInterface {
103
103
  usagesCreated?: UsageInterface[];
104
104
  productsCreated?: ProductInterface[];
105
105
  subscriptionsCreated?: SubscriptionInterface[];
106
- paymentsCreated?: PaymentInterface[];
106
+ paymentsCreated?: ChargeInterface[];
107
107
  permissions?: PermissionInterface[];
108
108
  notifications?: NotificationInterface[];
109
109
  avatar?: FileInterface;
@@ -240,7 +240,7 @@ interface ProductInterface {
240
240
  price?: PriceInterface;
241
241
  client?: ClientInterface;
242
242
  subscriptions?: SubscriptionInterface[];
243
- payments?: PaymentInterface[];
243
+ payments?: ChargeInterface[];
244
244
  poolId?: string;
245
245
  pool?: PoolInterface;
246
246
  organizationId?: string;
@@ -338,7 +338,7 @@ interface PauseCollectionInterface {
338
338
  behavior?: string;
339
339
  resumesAt?: Date;
340
340
  }
341
- interface PaymentInterface {
341
+ interface ChargeInterface {
342
342
  id?: string;
343
343
  createdAt?: Date;
344
344
  updatedAt?: Date;
@@ -582,7 +582,7 @@ interface ClientInterface {
582
582
  tasks?: TaskInterface[];
583
583
  products?: ProductInterface[];
584
584
  subscriptions?: SubscriptionInterface[];
585
- payments?: PaymentInterface[];
585
+ payments?: ChargeInterface[];
586
586
  contactIds?: string[];
587
587
  dealIds?: string[];
588
588
  invoiceIds?: string[];
@@ -758,7 +758,7 @@ interface InvoiceInterface {
758
758
  poolId?: string | null;
759
759
  accountOwnerId?: string;
760
760
  dealId?: string;
761
- payment?: PaymentInterface;
761
+ payment?: ChargeInterface;
762
762
  contents?: ContentInterface[];
763
763
  inventories?: InventoryInterface[];
764
764
  inventoryIds?: string[];
@@ -885,7 +885,7 @@ interface PoolInterface {
885
885
  lead?: LeadInterface;
886
886
  product?: ProductInterface;
887
887
  subscription?: SubscriptionInterface;
888
- payment?: PaymentInterface;
888
+ payment?: ChargeInterface;
889
889
  campaign?: CampaignInterface;
890
890
  invoice?: InvoiceInterface;
891
891
  engagement?: EngagementInterface;
@@ -1204,6 +1204,7 @@ declare enum paymentStatus {
1204
1204
  declare enum OrganizationFeatures {
1205
1205
  clients = "clients",
1206
1206
  tasks = "tasks",
1207
+ products = "products",
1207
1208
  inventories = "inventories",
1208
1209
  invoices = "invoices",
1209
1210
  leads = "leads",
@@ -1211,9 +1212,10 @@ declare enum OrganizationFeatures {
1211
1212
  contacts = "contacts",
1212
1213
  engagements = "engagements",
1213
1214
  campaigns = "campaigns",
1214
- products = "products",
1215
1215
  subscriptions = "subscriptions",
1216
- payments = "payments",
1216
+ charges = "charges",
1217
+ paymentMethods = "paymentMethods",
1218
+ disputes = "disputes",
1217
1219
  dataPools = "dataPools",
1218
1220
  lists = "lists",
1219
1221
  reports = "reports"
@@ -1647,6 +1649,7 @@ declare const constants: {
1647
1649
  MODEL_APP_MAPPING: {
1648
1650
  clients: string;
1649
1651
  inventories: string;
1652
+ products: string;
1650
1653
  invoices: string;
1651
1654
  tasks: string;
1652
1655
  campaigns: string;
@@ -1654,9 +1657,10 @@ declare const constants: {
1654
1657
  deals: string;
1655
1658
  engagements: string;
1656
1659
  leads: string;
1657
- payments: string;
1658
- products: string;
1660
+ charges: string;
1659
1661
  subscriptions: string;
1662
+ paymentMethods: string;
1663
+ disputes: string;
1660
1664
  };
1661
1665
  NOT_INCLUDED_FIELDS: string[];
1662
1666
  GQL_FIELD_TYPE: {
@@ -1689,14 +1693,16 @@ declare const constants: {
1689
1693
  campaigns: string;
1690
1694
  tasks: string;
1691
1695
  clients: string;
1696
+ products: string;
1692
1697
  inventories: string;
1693
1698
  deals: string;
1694
1699
  invoices: string;
1695
1700
  contacts: string;
1696
1701
  engagements: string;
1697
- products: string;
1698
1702
  subscriptions: string;
1699
- payments: string;
1703
+ charges: string;
1704
+ paymentMethods: string;
1705
+ disputes: string;
1700
1706
  content: string[];
1701
1707
  relations: string[];
1702
1708
  financials: string[];
@@ -1718,12 +1724,12 @@ declare const constants: {
1718
1724
  code: string;
1719
1725
  label: string;
1720
1726
  phone: string;
1721
- suggested?: undefined;
1727
+ suggested: boolean;
1722
1728
  } | {
1723
1729
  code: string;
1724
1730
  label: string;
1725
1731
  phone: string;
1726
- suggested: boolean;
1732
+ suggested?: undefined;
1727
1733
  })[];
1728
1734
  CURRENCIES: {
1729
1735
  aed: string;
@@ -2374,7 +2380,7 @@ declare const defaults: {
2374
2380
  missingPaymentMethod: string;
2375
2381
  };
2376
2382
  };
2377
- payments: {
2383
+ charges: {
2378
2384
  name: string;
2379
2385
  description: string;
2380
2386
  status: string;
@@ -2589,7 +2595,11 @@ declare const defaultsWithTypes: {
2589
2595
  default: string;
2590
2596
  type: string;
2591
2597
  };
2592
- contactName: {
2598
+ individualName: {
2599
+ default: string;
2600
+ type: string;
2601
+ };
2602
+ businessName: {
2593
2603
  default: string;
2594
2604
  type: string;
2595
2605
  };
@@ -3486,7 +3496,7 @@ declare const defaultsWithTypes: {
3486
3496
  };
3487
3497
  };
3488
3498
  };
3489
- payments: {
3499
+ charges: {
3490
3500
  name: {
3491
3501
  default: string;
3492
3502
  type: string;
@@ -3862,4 +3872,4 @@ declare const defaultsWithTypes: {
3862
3872
  };
3863
3873
  };
3864
3874
 
3865
- 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, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaults, defaultsWithTypes, formatPhoneNumber, getRandomArbitrary, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, paymentCancellationReason, paymentStatus, prettifyString, productType, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxExempt, toCurrencyValue, userRole, userSource, userStatus, validEmail };
3875
+ export { type ActivityInterface, type AddressInterface, type AnalyticsQueryInterface, AppMode, type AutomaticTaxInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, CategoryType, type ChargeInterface, 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 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, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaults, defaultsWithTypes, formatPhoneNumber, getRandomArbitrary, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, paymentCancellationReason, paymentStatus, prettifyString, productType, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxExempt, toCurrencyValue, userRole, userSource, userStatus, validEmail };
package/dist/index.js CHANGED
@@ -262,6 +262,7 @@ var paymentStatus = /* @__PURE__ */ ((paymentStatus2) => {
262
262
  var OrganizationFeatures = /* @__PURE__ */ ((OrganizationFeatures2) => {
263
263
  OrganizationFeatures2["clients"] = "clients";
264
264
  OrganizationFeatures2["tasks"] = "tasks";
265
+ OrganizationFeatures2["products"] = "products";
265
266
  OrganizationFeatures2["inventories"] = "inventories";
266
267
  OrganizationFeatures2["invoices"] = "invoices";
267
268
  OrganizationFeatures2["leads"] = "leads";
@@ -269,9 +270,10 @@ var OrganizationFeatures = /* @__PURE__ */ ((OrganizationFeatures2) => {
269
270
  OrganizationFeatures2["contacts"] = "contacts";
270
271
  OrganizationFeatures2["engagements"] = "engagements";
271
272
  OrganizationFeatures2["campaigns"] = "campaigns";
272
- OrganizationFeatures2["products"] = "products";
273
273
  OrganizationFeatures2["subscriptions"] = "subscriptions";
274
- OrganizationFeatures2["payments"] = "payments";
274
+ OrganizationFeatures2["charges"] = "charges";
275
+ OrganizationFeatures2["paymentMethods"] = "paymentMethods";
276
+ OrganizationFeatures2["disputes"] = "disputes";
275
277
  OrganizationFeatures2["dataPools"] = "dataPools";
276
278
  OrganizationFeatures2["lists"] = "lists";
277
279
  OrganizationFeatures2["reports"] = "reports";
@@ -764,6 +766,7 @@ var constants = {
764
766
  MODEL_APP_MAPPING: {
765
767
  clients: "cms",
766
768
  inventories: "cms",
769
+ products: "cms",
767
770
  invoices: "cms",
768
771
  tasks: "cms",
769
772
  campaigns: "crm",
@@ -771,9 +774,10 @@ var constants = {
771
774
  deals: "crm",
772
775
  engagements: "crm",
773
776
  leads: "crm",
774
- payments: "financials",
775
- products: "financials",
776
- subscriptions: "financials"
777
+ charges: "financials",
778
+ subscriptions: "financials",
779
+ paymentMethods: "financials",
780
+ disputes: "financials"
777
781
  },
778
782
  NOT_INCLUDED_FIELDS: [
779
783
  "id",
@@ -817,17 +821,19 @@ var constants = {
817
821
  campaigns: "relations",
818
822
  tasks: "content",
819
823
  clients: "content",
824
+ products: "content",
820
825
  inventories: "content",
821
826
  deals: "relations",
822
827
  invoices: "content",
823
828
  contacts: "relations",
824
829
  engagements: "relations",
825
- products: "financials",
826
830
  subscriptions: "financials",
827
- payments: "financials",
828
- content: ["clients", "inventories", "invoices", "tasks"],
831
+ charges: "financials",
832
+ paymentMethods: "financials",
833
+ disputes: "financials",
834
+ content: ["clients", "products", "inventories", "invoices", "tasks"],
829
835
  relations: ["deals", "contacts", "engagements", "leads", "campaigns"],
830
- financials: ["products", "subscriptions", "payments"]
836
+ financials: ["subscriptions", "charges", "paymentMethods", "disputes"]
831
837
  },
832
838
  SETTING_TABS: {
833
839
  Personal: "Personal",
@@ -913,6 +919,12 @@ var constants = {
913
919
  "Wyoming"
914
920
  ],
915
921
  COUNTRIES: [
922
+ {
923
+ code: "US",
924
+ label: "United States Of America",
925
+ phone: "1",
926
+ suggested: true
927
+ },
916
928
  { code: "AD", label: "Andorra", phone: "376" },
917
929
  {
918
930
  code: "AE",
@@ -1296,12 +1308,6 @@ var constants = {
1296
1308
  },
1297
1309
  { code: "UA", label: "Ukraine", phone: "380" },
1298
1310
  { code: "UG", label: "Uganda", phone: "256" },
1299
- {
1300
- code: "US",
1301
- label: "United States Of America",
1302
- phone: "1",
1303
- suggested: true
1304
- },
1305
1311
  { code: "UY", label: "Uruguay", phone: "598" },
1306
1312
  { code: "UZ", label: "Uzbekistan", phone: "998" },
1307
1313
  {
@@ -2120,7 +2126,7 @@ var defaults = {
2120
2126
  missingPaymentMethod: ""
2121
2127
  }
2122
2128
  },
2123
- payments: {
2129
+ charges: {
2124
2130
  name: "",
2125
2131
  description: "",
2126
2132
  status: "Ready",
@@ -2268,7 +2274,8 @@ var defaultsWithTypes = {
2268
2274
  description: { default: "", type: "String" },
2269
2275
  status: { default: "Ready", type: "String" },
2270
2276
  email: { default: "", type: "String" },
2271
- contactName: { default: "", type: "String" },
2277
+ individualName: { default: "", type: "String" },
2278
+ businessName: { default: "", type: "String" },
2272
2279
  phone: { default: "", type: "PhoneNumber" },
2273
2280
  accountNumber: { default: "", type: "String" },
2274
2281
  invoicePrefix: { default: "", type: "String" },
@@ -2526,7 +2533,7 @@ var defaultsWithTypes = {
2526
2533
  missingPaymentMethod: { default: "", type: "String" }
2527
2534
  }
2528
2535
  },
2529
- payments: {
2536
+ charges: {
2530
2537
  name: { default: "", type: "String" },
2531
2538
  description: { default: "", type: "String" },
2532
2539
  status: { default: "Ready", type: "String" },