@retaila/shared-types 2.0.25 → 2.0.27
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 +126 -110
- package/dist/index.d.ts +126 -110
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -678,6 +678,114 @@ interface StatusInfo {
|
|
|
678
678
|
actionText?: string;
|
|
679
679
|
}
|
|
680
680
|
|
|
681
|
+
interface AccountExchangeRate extends BaseEntityWithAccount {
|
|
682
|
+
id: string;
|
|
683
|
+
accountId: string;
|
|
684
|
+
baseCurrency: Currency;
|
|
685
|
+
targetCurrency: Currency;
|
|
686
|
+
configurationType: AccountExchangeRateType;
|
|
687
|
+
manualRate?: number;
|
|
688
|
+
adjustmentPercentage?: number;
|
|
689
|
+
roundingConfig?: RoundingConfig;
|
|
690
|
+
isActive: boolean;
|
|
691
|
+
lastManualUpdate?: Date;
|
|
692
|
+
metadata?: AccountExchangeRateMetadata;
|
|
693
|
+
createdAt: Date;
|
|
694
|
+
updatedAt: Date;
|
|
695
|
+
deletedAt?: Date;
|
|
696
|
+
}
|
|
697
|
+
declare enum AccountExchangeRateType {
|
|
698
|
+
AUTOMATIC = "AUTOMATIC",
|
|
699
|
+
AUTOMATIC_WITH_ADJUSTMENT = "AUTOMATIC_WITH_ADJUSTMENT",
|
|
700
|
+
MANUAL = "MANUAL"
|
|
701
|
+
}
|
|
702
|
+
interface RoundingConfig {
|
|
703
|
+
method: RoundingMethod;
|
|
704
|
+
decimalPlaces: number;
|
|
705
|
+
roundingRule?: RoundingRule;
|
|
706
|
+
}
|
|
707
|
+
declare enum RoundingMethod {
|
|
708
|
+
ROUND = "ROUND",
|
|
709
|
+
CEIL = "CEIL",
|
|
710
|
+
FLOOR = "FLOOR",
|
|
711
|
+
BANKERS = "BANKERS"
|
|
712
|
+
}
|
|
713
|
+
declare enum RoundingRule {
|
|
714
|
+
ROUND_TO_5_CENTS = "ROUND_TO_5_CENTS",
|
|
715
|
+
ROUND_TO_10_CENTS = "ROUND_TO_10_CENTS",
|
|
716
|
+
NONE = "NONE"
|
|
717
|
+
}
|
|
718
|
+
interface AccountExchangeRateMetadata {
|
|
719
|
+
description?: string;
|
|
720
|
+
notes?: string;
|
|
721
|
+
[key: string]: any;
|
|
722
|
+
}
|
|
723
|
+
interface CreateAccountExchangeRateDto {
|
|
724
|
+
baseCurrency: Currency;
|
|
725
|
+
targetCurrency: Currency;
|
|
726
|
+
configurationType: AccountExchangeRateType;
|
|
727
|
+
manualRate?: number;
|
|
728
|
+
adjustmentPercentage?: number;
|
|
729
|
+
roundingConfig?: RoundingConfig;
|
|
730
|
+
metadata?: AccountExchangeRateMetadata;
|
|
731
|
+
}
|
|
732
|
+
interface UpdateAccountExchangeRateDto {
|
|
733
|
+
configurationType?: AccountExchangeRateType;
|
|
734
|
+
manualRate?: number;
|
|
735
|
+
adjustmentPercentage?: number;
|
|
736
|
+
roundingConfig?: RoundingConfig;
|
|
737
|
+
isActive?: boolean;
|
|
738
|
+
metadata?: AccountExchangeRateMetadata;
|
|
739
|
+
}
|
|
740
|
+
interface AccountExchangeRateQueryDto {
|
|
741
|
+
baseCurrency?: Currency;
|
|
742
|
+
targetCurrency?: Currency;
|
|
743
|
+
configurationType?: AccountExchangeRateType;
|
|
744
|
+
isActive?: boolean;
|
|
745
|
+
limit?: number;
|
|
746
|
+
offset?: number;
|
|
747
|
+
}
|
|
748
|
+
interface AccountExchangeRateResponse {
|
|
749
|
+
item: AccountExchangeRate;
|
|
750
|
+
}
|
|
751
|
+
interface UpdateAccountExchangeRateAllDto {
|
|
752
|
+
globalConfig?: any;
|
|
753
|
+
rates: Array<{
|
|
754
|
+
id?: string;
|
|
755
|
+
targetCurrency: Currency;
|
|
756
|
+
configurationType: AccountExchangeRateType;
|
|
757
|
+
manualRate?: number;
|
|
758
|
+
adjustmentPercentage?: number;
|
|
759
|
+
roundingConfig?: RoundingConfig;
|
|
760
|
+
}>;
|
|
761
|
+
}
|
|
762
|
+
interface AccountExchangeRateListResponse {
|
|
763
|
+
storeCurrency: Currency;
|
|
764
|
+
paymentCurrencies: Currency[];
|
|
765
|
+
rates: AccountExchangeRateWithEffectiveRate[];
|
|
766
|
+
}
|
|
767
|
+
interface AccountExchangeRateWithEffectiveRate extends AccountExchangeRate {
|
|
768
|
+
effectiveRate: number;
|
|
769
|
+
baseGlobalRate: number;
|
|
770
|
+
source: string;
|
|
771
|
+
effectiveDate: Date;
|
|
772
|
+
}
|
|
773
|
+
interface AccountCurrencyConfig {
|
|
774
|
+
accountId: string;
|
|
775
|
+
primaryCurrency: Currency;
|
|
776
|
+
exchangeRates: AccountExchangeRate[];
|
|
777
|
+
effectiveRates: EffectiveExchangeRate[];
|
|
778
|
+
}
|
|
779
|
+
interface EffectiveExchangeRate {
|
|
780
|
+
baseCurrency: Currency;
|
|
781
|
+
targetCurrency: Currency;
|
|
782
|
+
effectiveRate: number;
|
|
783
|
+
baseGlobalRate: number;
|
|
784
|
+
configurationType: AccountExchangeRateType;
|
|
785
|
+
effectiveDate: Date;
|
|
786
|
+
source: string;
|
|
787
|
+
}
|
|
788
|
+
|
|
681
789
|
declare enum AccountPaymentMethodStatus {
|
|
682
790
|
ACTIVE = "ACTIVE",// Active
|
|
683
791
|
INACTIVE = "INACTIVE"
|
|
@@ -700,10 +808,26 @@ interface AccountPaymentMethod {
|
|
|
700
808
|
account?: Account;
|
|
701
809
|
statusInfo?: StatusInfo;
|
|
702
810
|
typeName?: string;
|
|
811
|
+
/** Currency the gateway will charge in (API-resolved; do not infer from provider in UI). */
|
|
812
|
+
chargeCurrency?: Currency;
|
|
813
|
+
/** Present when account store currency differs from chargeCurrency and a rate exists. */
|
|
814
|
+
exchangeRate?: EffectiveExchangeRate;
|
|
703
815
|
}
|
|
704
816
|
|
|
705
817
|
declare function getAccountPaymentMethodStatusInfo(status: AccountPaymentMethodStatus): StatusInfo;
|
|
706
818
|
|
|
819
|
+
/**
|
|
820
|
+
* Currency in which the payment gateway will settle the charge for checkout.
|
|
821
|
+
* Centralizes provider-specific rules; consumers (e.g. storefront) should use
|
|
822
|
+
* {@link AccountPaymentMethod.chargeCurrency} from the API instead of branching on providerKey.
|
|
823
|
+
*/
|
|
824
|
+
declare function resolveChargeCurrency(params: {
|
|
825
|
+
providerKey?: string | null;
|
|
826
|
+
settingsCurrency?: string | null;
|
|
827
|
+
/** Store / account currency; used when settings omit currency or for MANUAL_PAYMENT. */
|
|
828
|
+
accountCurrency?: string | null;
|
|
829
|
+
}): Currency | undefined;
|
|
830
|
+
|
|
707
831
|
/**
|
|
708
832
|
* Entidad Customer
|
|
709
833
|
* Cliente de la tienda
|
|
@@ -987,7 +1111,7 @@ interface Payment {
|
|
|
987
1111
|
canRefund: boolean;
|
|
988
1112
|
};
|
|
989
1113
|
}
|
|
990
|
-
type PaymentProviderKey = 'MERCADOPAGO' | 'MERCADOPAGO_MARKETPLACE' | 'PLEXO' | 'MANUAL_PAYMENT';
|
|
1114
|
+
type PaymentProviderKey = 'MERCADOPAGO' | 'MERCADOPAGO_MARKETPLACE' | 'PLEXO' | 'MANUAL_PAYMENT' | 'PAYPAL';
|
|
991
1115
|
interface PaymentProviderContext {
|
|
992
1116
|
data: Record<string, unknown>;
|
|
993
1117
|
}
|
|
@@ -2760,114 +2884,6 @@ interface CurrencyConversion {
|
|
|
2760
2884
|
source: string;
|
|
2761
2885
|
}
|
|
2762
2886
|
|
|
2763
|
-
interface AccountExchangeRate extends BaseEntityWithAccount {
|
|
2764
|
-
id: string;
|
|
2765
|
-
accountId: string;
|
|
2766
|
-
baseCurrency: Currency;
|
|
2767
|
-
targetCurrency: Currency;
|
|
2768
|
-
configurationType: AccountExchangeRateType;
|
|
2769
|
-
manualRate?: number;
|
|
2770
|
-
adjustmentPercentage?: number;
|
|
2771
|
-
roundingConfig?: RoundingConfig;
|
|
2772
|
-
isActive: boolean;
|
|
2773
|
-
lastManualUpdate?: Date;
|
|
2774
|
-
metadata?: AccountExchangeRateMetadata;
|
|
2775
|
-
createdAt: Date;
|
|
2776
|
-
updatedAt: Date;
|
|
2777
|
-
deletedAt?: Date;
|
|
2778
|
-
}
|
|
2779
|
-
declare enum AccountExchangeRateType {
|
|
2780
|
-
AUTOMATIC = "AUTOMATIC",
|
|
2781
|
-
AUTOMATIC_WITH_ADJUSTMENT = "AUTOMATIC_WITH_ADJUSTMENT",
|
|
2782
|
-
MANUAL = "MANUAL"
|
|
2783
|
-
}
|
|
2784
|
-
interface RoundingConfig {
|
|
2785
|
-
method: RoundingMethod;
|
|
2786
|
-
decimalPlaces: number;
|
|
2787
|
-
roundingRule?: RoundingRule;
|
|
2788
|
-
}
|
|
2789
|
-
declare enum RoundingMethod {
|
|
2790
|
-
ROUND = "ROUND",
|
|
2791
|
-
CEIL = "CEIL",
|
|
2792
|
-
FLOOR = "FLOOR",
|
|
2793
|
-
BANKERS = "BANKERS"
|
|
2794
|
-
}
|
|
2795
|
-
declare enum RoundingRule {
|
|
2796
|
-
ROUND_TO_5_CENTS = "ROUND_TO_5_CENTS",
|
|
2797
|
-
ROUND_TO_10_CENTS = "ROUND_TO_10_CENTS",
|
|
2798
|
-
NONE = "NONE"
|
|
2799
|
-
}
|
|
2800
|
-
interface AccountExchangeRateMetadata {
|
|
2801
|
-
description?: string;
|
|
2802
|
-
notes?: string;
|
|
2803
|
-
[key: string]: any;
|
|
2804
|
-
}
|
|
2805
|
-
interface CreateAccountExchangeRateDto {
|
|
2806
|
-
baseCurrency: Currency;
|
|
2807
|
-
targetCurrency: Currency;
|
|
2808
|
-
configurationType: AccountExchangeRateType;
|
|
2809
|
-
manualRate?: number;
|
|
2810
|
-
adjustmentPercentage?: number;
|
|
2811
|
-
roundingConfig?: RoundingConfig;
|
|
2812
|
-
metadata?: AccountExchangeRateMetadata;
|
|
2813
|
-
}
|
|
2814
|
-
interface UpdateAccountExchangeRateDto {
|
|
2815
|
-
configurationType?: AccountExchangeRateType;
|
|
2816
|
-
manualRate?: number;
|
|
2817
|
-
adjustmentPercentage?: number;
|
|
2818
|
-
roundingConfig?: RoundingConfig;
|
|
2819
|
-
isActive?: boolean;
|
|
2820
|
-
metadata?: AccountExchangeRateMetadata;
|
|
2821
|
-
}
|
|
2822
|
-
interface AccountExchangeRateQueryDto {
|
|
2823
|
-
baseCurrency?: Currency;
|
|
2824
|
-
targetCurrency?: Currency;
|
|
2825
|
-
configurationType?: AccountExchangeRateType;
|
|
2826
|
-
isActive?: boolean;
|
|
2827
|
-
limit?: number;
|
|
2828
|
-
offset?: number;
|
|
2829
|
-
}
|
|
2830
|
-
interface AccountExchangeRateResponse {
|
|
2831
|
-
item: AccountExchangeRate;
|
|
2832
|
-
}
|
|
2833
|
-
interface UpdateAccountExchangeRateAllDto {
|
|
2834
|
-
globalConfig?: any;
|
|
2835
|
-
rates: Array<{
|
|
2836
|
-
id?: string;
|
|
2837
|
-
targetCurrency: Currency;
|
|
2838
|
-
configurationType: AccountExchangeRateType;
|
|
2839
|
-
manualRate?: number;
|
|
2840
|
-
adjustmentPercentage?: number;
|
|
2841
|
-
roundingConfig?: RoundingConfig;
|
|
2842
|
-
}>;
|
|
2843
|
-
}
|
|
2844
|
-
interface AccountExchangeRateListResponse {
|
|
2845
|
-
storeCurrency: Currency;
|
|
2846
|
-
paymentCurrencies: Currency[];
|
|
2847
|
-
rates: AccountExchangeRateWithEffectiveRate[];
|
|
2848
|
-
}
|
|
2849
|
-
interface AccountExchangeRateWithEffectiveRate extends AccountExchangeRate {
|
|
2850
|
-
effectiveRate: number;
|
|
2851
|
-
baseGlobalRate: number;
|
|
2852
|
-
source: string;
|
|
2853
|
-
effectiveDate: Date;
|
|
2854
|
-
}
|
|
2855
|
-
interface AccountCurrencyConfig {
|
|
2856
|
-
accountId: string;
|
|
2857
|
-
primaryCurrency: Currency;
|
|
2858
|
-
exchangeRates: AccountExchangeRate[];
|
|
2859
|
-
effectiveRates: EffectiveExchangeRate[];
|
|
2860
|
-
}
|
|
2861
|
-
interface EffectiveExchangeRate {
|
|
2862
|
-
baseCurrency: Currency;
|
|
2863
|
-
targetCurrency: Currency;
|
|
2864
|
-
effectiveRate: number;
|
|
2865
|
-
baseGlobalRate: number;
|
|
2866
|
-
configurationType: AccountExchangeRateType;
|
|
2867
|
-
effectiveDate: Date;
|
|
2868
|
-
source: string;
|
|
2869
|
-
}
|
|
2870
|
-
|
|
2871
2887
|
interface StoreSettings {
|
|
2872
2888
|
id: string;
|
|
2873
2889
|
accountId: string;
|
|
@@ -3738,4 +3754,4 @@ interface GestionLoginAttempt {
|
|
|
3738
3754
|
createdAt: Date;
|
|
3739
3755
|
}
|
|
3740
3756
|
|
|
3741
|
-
export { type Account, type AccountAiCreditTransaction, type AccountAiCredits, type AccountBillingProfile, type AccountBranch, type AccountBranchSchedule, AccountBranchScheduleDay, AccountBranchScheduleStatus, AccountBranchStatus, type AccountCurrencyConfig, type AccountDeliveryOption, type AccountDeliveryOptionCalculatedCost, AccountDeliveryOptionPriceLogic, type AccountDeliveryOptionRule, AccountDeliveryOptionStatus, type AccountDeliveryOptionZone, AccountDeliveryOptionZoneStatus, type AccountDomain, AccountDomainStatus, type AccountEmailDomain, AccountEmailDomainStatus, type AccountExchangeRate, type AccountExchangeRateListResponse, type AccountExchangeRateMetadata, type AccountExchangeRateQueryDto, type AccountExchangeRateResponse, AccountExchangeRateType, type AccountExchangeRateWithEffectiveRate, type AccountHolidaySchedule, type AccountIntegration, type AccountIntegrationConfigDTO, AccountIntegrationConnectionStatus, AccountIntegrationEnvironment, AccountIntegrationStatus, type AccountMailbox, type AccountPaymentMethod, AccountPaymentMethodStatus, type AccountServiceBillingCharge, type AccountServicePlan, AccountServicePlanStatus, AccountStatus, type AccountUserRoleLink, type ActiveSession, type Address, type AdminOrderStatusChangeDto, AiCreditSource, AiCreditTransactionReason, AiCreditType, type AiCreditsBalance, type AnalyticsEvent, AnalyticsEventType, type AnalyticsFunnelStep, type AnalyticsOverview, type AnalyticsPageview, type AnalyticsPagination, type AnalyticsQueryParams, type AnalyticsSession, type BaseEntity, type BaseEntityWithAccount, type BaseEntityWithAccountAndUser, type BaseEntityWithUser, BillingInterval, BillingSociety, type BufferSafetyMarginParams, type BusinessDaysParams, type ButtonStyle, COUNTRY_DEFAULTS, type Campaign, type CampaignBudget, CampaignBudgetType, type CampaignBudgetUsage, type CampaignData, type CampaignPerformance, CampaignStatus, type Cart, type CartConfirmDto, type CartDeliveryMethod, type CartDeliveryMethodAdjustment, type CartDeliveryMethodCreateData, type CartDeliveryMethodCreateDto, type CartDeliveryMethodFindParams, type CartDeliveryMethodResponse, type CartDeliveryMethodUpdateData, type CartDeliveryMethodUpdateDto, CartDeliveryType, type CartItem, type CartItemAddDto, type CartItemAttributeDetail, CartItemErrorCode, type CartItemRemoveDto, type CartItemUpdateDto, type CartItemValidation, type CartLineItemAdjustment, type CartPromotion, CartSource, CartStatus, type CartUpdateDto, type ChargeSellerAllocation, ChargeStatus, ChargeType, type Collection, type CollectionMedia, type CollectionProductLink, type CollectionRule, CollectionRuleField, CollectionRuleFieldLabels, CollectionRuleOperator, CollectionRuleOperatorLabels, CollectionRulesLogic, CollectionStatus, CollectionStatusLabels, CollectionType, CollectionTypeLabels, type ColorVariant, type CountryDefaultBranchAddress, type CountryDefaultConfig, type CountryDefaultTax, type CreateAccountDeliveryOptionDTO, type CreateAccountExchangeRateDto, type CreateAnalyticsSessionDto, type CreateCollectionDTO, type CreateDeliveryOptionDto, type CreateDeliveryOptionRuleDTO, type CreateExchangeRateDto, type CreateFulfillmentDto, type CreateFulfillmentItemDto, type CreateLeadActivityDTO, type CreateLeadDTO, type CreatePromotionDTO, type CreateRoleDTO, type CreateStoreComponentTemplateDTO, type CreateStoreTemplateDTO, Currency, type CurrencyConversion, type Customer, type CustomerNotificationConfig, CustomerStatus, type CustomerUpsertDto, DayOfWeek, type DeliveryDaysParams, type DeliveryHoursParams, DeliveryOptionRuleType, DeliveryType, type DeliveryZoneInput, type DesignTokens, DeviceType, DisplayOrderStatus, type EffectiveExchangeRate, type ExchangeRate, type ExchangeRateListResponse, type ExchangeRateMetadata, type ExchangeRateQueryDto, type ExchangeRateResponse, type FixedOffsetDaysParams, type Fulfillment, type FulfillmentDeliveryOption, type FulfillmentItem, type FulfillmentLabel, type FulfillmentLabelCreateData, type FulfillmentLabelUpdateData, type FulfillmentProviderAdapter, type FulfillmentProviderContext, type FulfillmentProviderCreateInput, type FulfillmentProviderCreateOutput, type FulfillmentProviderKey, type FulfillmentProviderProcessWebhookInput, type FulfillmentProviderProcessWebhookOutput, type FulfillmentRecollectionCapabilities, type FulfillmentRecollectionConfig, type FulfillmentRecollectionMode, type FulfillmentRecollectionSchedule, FulfillmentStatus, type FulfillmentTrackingEvent, type FunnelData, FunnelStep, type FunnelStepData, type GeoZone, type GeoZoneInput, GeoZoneStatus, type GestionLoginAttempt, type GestionSession, type GestionUser, GestionUserRole, GestionUserStatus, type HistoricalDataPoint, type Holiday, HolidayType, type Integration, IntegrationCategory, type IntegrationDeliveryZone, IntegrationDeliveryZoneStatus, IntegrationStatus, type InternalNotificationConfig, InternalNotificationType, LEAD_DEAL_STAGES, LEAD_DEAL_STAGE_ORDER, type Lead, type LeadActivity, type LeadActivityType, type LeadCrmDashboardSummary, type LeadDealStage, type LeadLostReason, type LeadPriority, type LeadSource, type LinkButtonStyle, type MapPosition, type Media, MediaType, NavigationItemType, type NavigationMenuConfig, type NavigationMenuItem, type NeutralColorScale, type NextStatusAction, type Order, type OrderCreateFromCartDto, type OrderDeliveryMethod, type OrderDeliveryMethodAdjustment, type OrderDeliveryMethodCreateData, type OrderDeliveryMethodUpdateData, OrderDeliveryType, type OrderItem, type OrderItemSnapshot, type OrderLineItemAdjustment, OrderPaymentStatus, type OrderPromotion, OrderSource, OrderStatus, type PageData, PageType, type Payment, type PaymentCardBrand, PaymentCardBrandKey, type PaymentConversion, PaymentFrequency, PaymentMethodType, type PaymentProviderAdapter, type PaymentProviderCaptureInput, type PaymentProviderCaptureOutput, type PaymentProviderContext, type PaymentProviderInitInput, type PaymentProviderInitOutput, type PaymentProviderKey, type PaymentProviderRefundInput, type PaymentProviderRefundOutput, type PaymentProviderWebhookResult, PaymentStatus, type Permission, type Phone, type PickupLocation, type PickupReadyHoursParams, type ProcessingDaysParams, type Product, type ProductAnalyticsData, type ProductAnalyticsItem, type ProductAttribute, type ProductAttributeOption, ProductAttributeStatus, ProductAttributeType, type ProductCategory, ProductCategoryStatus, ProductStatus, ProductType, type ProductVariant, ProductVariantStatus, type Promotion, type PromotionApplicationMethod, type PromotionApplicationMethodInput, type PromotionApplicationMethodPromotionRule, PromotionApplicationType, type PromotionListFilters, type PromotionPromotionRule, type PromotionRule, type PromotionRuleInput, PromotionRuleOperator, type PromotionRuleValue, PromotionStatus, PromotionTargetType, PromotionType, PubSubTopics, type RealtimeAnalytics, type RecentEvent, type Role, type RolePermissionLink, type RoundingConfig, RoundingMethod, RoundingRule, SUPPORTED_COUNTRIES, type SameDayCutoffParams, type Seller, type SellerPeriodBalance, type ServiceBillingPlan, type ServiceBillingPlanLimits, type ServiceBillingPlanPrice, type ServiceBillingPlanSpec, type ServiceBillingPlanSpecCategory, type ServiceBillingPlanSpecItem, type SessionHeartbeatDto, type StandardCategory, StandardCategoryStatus, type StatusChangeHistory, type StatusFlow, type StoreBanner, StoreBannerStatus, type StoreComponentTemplate, type StoreCustomization, type StoreCustomizationComponentSettings, type StoreCustomizationFooterZone, type StoreCustomizationHeaderZone, type StoreCustomizationLayout, type StoreCustomizationLayoutComponent, type StoreCustomizationLayoutLegacy, type StoreCustomizationPage, type StoreCustomizationPageComponent, type StoreCustomizationSeo, type StoreCustomizationThemeButtons, type StoreCustomizationThemeColors, type StoreCustomizationThemeTypography, type StorePage, StorePageStatus, StorePageType, type StoreSettings, type StoreTemplate, type StoreTemplateMocks, type SupportConversation, SupportConversationChannel, type SupportConversationMessage, SupportConversationMessageAiAnalysisStatus, SupportConversationMessageDeliveryStatus, SupportConversationMessageDirection, SupportConversationMessageSenderType, SupportConversationPriority, SupportConversationStatus, SupportConversationVisibility, type SupportedCountryCode, type SurfaceColors, type ThemeBorderRadius, type ThemeBorderWidth, type ThemeBorders, type ThemeButtonSize, type ThemeButtonSizes, type ThemeButtonVariant, type ThemeButtonVariants, type ThemeButtons, type ThemeColorPalette, type ThemeConfig, type ThemeFonts, type ThemeProductCard, type ThemeShadows, type ThemeSpacing, type ThemeTypography, type ThemeTypographySizes, type ThemeTypographyStyles, type TopPagesData, type TrackEventDto, type TrackPageviewDto, TrafficSource, type TrafficSourceItem, type TrafficSourcesData, type TypographyStyle, type UnifiedDeliveryConfig, type UpdateAccountDeliveryOptionDTO, type UpdateAccountExchangeRateAllDto, type UpdateAccountExchangeRateDto, type UpdateCollectionDTO, type UpdateDeliveryOptionRuleDTO, type UpdateExchangeRateDto, type UpdateFulfillmentDto, type UpdateLeadDTO, type UpdateNotificationSettingsDTO, type UpdatePromotionDTO, type UpdateRoleDTO, type UpdateStoreComponentTemplateDTO, type UpdateStoreTemplateDTO, type Webhook, type WebhookPayload, aiCreditsPerSubscriptionInstallment, contractTermMonths, getAccountPaymentMethodStatusInfo, getCountryDefaults, getCurrencySymbol, getDisplayOrderStatus, getDisplayOrderStatusInfo, getFulfillmentStatusInfo, getIntegrationCategoryName, getOrderPaymentStatusInfo, getOrderStatusInfo, getPaymentCardBrand, getPaymentStatusInfo, getProductStatusInfo, isLeadDealStage, isLegacyLayout, isSupportedCountry, isZonedLayout, parsePriceFormatPattern, paymentFrequencyMonths, resolveEffectivePaymentFrequency, subscriptionAmountPerInstallment, subscriptionInstallmentCount };
|
|
3757
|
+
export { type Account, type AccountAiCreditTransaction, type AccountAiCredits, type AccountBillingProfile, type AccountBranch, type AccountBranchSchedule, AccountBranchScheduleDay, AccountBranchScheduleStatus, AccountBranchStatus, type AccountCurrencyConfig, type AccountDeliveryOption, type AccountDeliveryOptionCalculatedCost, AccountDeliveryOptionPriceLogic, type AccountDeliveryOptionRule, AccountDeliveryOptionStatus, type AccountDeliveryOptionZone, AccountDeliveryOptionZoneStatus, type AccountDomain, AccountDomainStatus, type AccountEmailDomain, AccountEmailDomainStatus, type AccountExchangeRate, type AccountExchangeRateListResponse, type AccountExchangeRateMetadata, type AccountExchangeRateQueryDto, type AccountExchangeRateResponse, AccountExchangeRateType, type AccountExchangeRateWithEffectiveRate, type AccountHolidaySchedule, type AccountIntegration, type AccountIntegrationConfigDTO, AccountIntegrationConnectionStatus, AccountIntegrationEnvironment, AccountIntegrationStatus, type AccountMailbox, type AccountPaymentMethod, AccountPaymentMethodStatus, type AccountServiceBillingCharge, type AccountServicePlan, AccountServicePlanStatus, AccountStatus, type AccountUserRoleLink, type ActiveSession, type Address, type AdminOrderStatusChangeDto, AiCreditSource, AiCreditTransactionReason, AiCreditType, type AiCreditsBalance, type AnalyticsEvent, AnalyticsEventType, type AnalyticsFunnelStep, type AnalyticsOverview, type AnalyticsPageview, type AnalyticsPagination, type AnalyticsQueryParams, type AnalyticsSession, type BaseEntity, type BaseEntityWithAccount, type BaseEntityWithAccountAndUser, type BaseEntityWithUser, BillingInterval, BillingSociety, type BufferSafetyMarginParams, type BusinessDaysParams, type ButtonStyle, COUNTRY_DEFAULTS, type Campaign, type CampaignBudget, CampaignBudgetType, type CampaignBudgetUsage, type CampaignData, type CampaignPerformance, CampaignStatus, type Cart, type CartConfirmDto, type CartDeliveryMethod, type CartDeliveryMethodAdjustment, type CartDeliveryMethodCreateData, type CartDeliveryMethodCreateDto, type CartDeliveryMethodFindParams, type CartDeliveryMethodResponse, type CartDeliveryMethodUpdateData, type CartDeliveryMethodUpdateDto, CartDeliveryType, type CartItem, type CartItemAddDto, type CartItemAttributeDetail, CartItemErrorCode, type CartItemRemoveDto, type CartItemUpdateDto, type CartItemValidation, type CartLineItemAdjustment, type CartPromotion, CartSource, CartStatus, type CartUpdateDto, type ChargeSellerAllocation, ChargeStatus, ChargeType, type Collection, type CollectionMedia, type CollectionProductLink, type CollectionRule, CollectionRuleField, CollectionRuleFieldLabels, CollectionRuleOperator, CollectionRuleOperatorLabels, CollectionRulesLogic, CollectionStatus, CollectionStatusLabels, CollectionType, CollectionTypeLabels, type ColorVariant, type CountryDefaultBranchAddress, type CountryDefaultConfig, type CountryDefaultTax, type CreateAccountDeliveryOptionDTO, type CreateAccountExchangeRateDto, type CreateAnalyticsSessionDto, type CreateCollectionDTO, type CreateDeliveryOptionDto, type CreateDeliveryOptionRuleDTO, type CreateExchangeRateDto, type CreateFulfillmentDto, type CreateFulfillmentItemDto, type CreateLeadActivityDTO, type CreateLeadDTO, type CreatePromotionDTO, type CreateRoleDTO, type CreateStoreComponentTemplateDTO, type CreateStoreTemplateDTO, Currency, type CurrencyConversion, type Customer, type CustomerNotificationConfig, CustomerStatus, type CustomerUpsertDto, DayOfWeek, type DeliveryDaysParams, type DeliveryHoursParams, DeliveryOptionRuleType, DeliveryType, type DeliveryZoneInput, type DesignTokens, DeviceType, DisplayOrderStatus, type EffectiveExchangeRate, type ExchangeRate, type ExchangeRateListResponse, type ExchangeRateMetadata, type ExchangeRateQueryDto, type ExchangeRateResponse, type FixedOffsetDaysParams, type Fulfillment, type FulfillmentDeliveryOption, type FulfillmentItem, type FulfillmentLabel, type FulfillmentLabelCreateData, type FulfillmentLabelUpdateData, type FulfillmentProviderAdapter, type FulfillmentProviderContext, type FulfillmentProviderCreateInput, type FulfillmentProviderCreateOutput, type FulfillmentProviderKey, type FulfillmentProviderProcessWebhookInput, type FulfillmentProviderProcessWebhookOutput, type FulfillmentRecollectionCapabilities, type FulfillmentRecollectionConfig, type FulfillmentRecollectionMode, type FulfillmentRecollectionSchedule, FulfillmentStatus, type FulfillmentTrackingEvent, type FunnelData, FunnelStep, type FunnelStepData, type GeoZone, type GeoZoneInput, GeoZoneStatus, type GestionLoginAttempt, type GestionSession, type GestionUser, GestionUserRole, GestionUserStatus, type HistoricalDataPoint, type Holiday, HolidayType, type Integration, IntegrationCategory, type IntegrationDeliveryZone, IntegrationDeliveryZoneStatus, IntegrationStatus, type InternalNotificationConfig, InternalNotificationType, LEAD_DEAL_STAGES, LEAD_DEAL_STAGE_ORDER, type Lead, type LeadActivity, type LeadActivityType, type LeadCrmDashboardSummary, type LeadDealStage, type LeadLostReason, type LeadPriority, type LeadSource, type LinkButtonStyle, type MapPosition, type Media, MediaType, NavigationItemType, type NavigationMenuConfig, type NavigationMenuItem, type NeutralColorScale, type NextStatusAction, type Order, type OrderCreateFromCartDto, type OrderDeliveryMethod, type OrderDeliveryMethodAdjustment, type OrderDeliveryMethodCreateData, type OrderDeliveryMethodUpdateData, OrderDeliveryType, type OrderItem, type OrderItemSnapshot, type OrderLineItemAdjustment, OrderPaymentStatus, type OrderPromotion, OrderSource, OrderStatus, type PageData, PageType, type Payment, type PaymentCardBrand, PaymentCardBrandKey, type PaymentConversion, PaymentFrequency, PaymentMethodType, type PaymentProviderAdapter, type PaymentProviderCaptureInput, type PaymentProviderCaptureOutput, type PaymentProviderContext, type PaymentProviderInitInput, type PaymentProviderInitOutput, type PaymentProviderKey, type PaymentProviderRefundInput, type PaymentProviderRefundOutput, type PaymentProviderWebhookResult, PaymentStatus, type Permission, type Phone, type PickupLocation, type PickupReadyHoursParams, type ProcessingDaysParams, type Product, type ProductAnalyticsData, type ProductAnalyticsItem, type ProductAttribute, type ProductAttributeOption, ProductAttributeStatus, ProductAttributeType, type ProductCategory, ProductCategoryStatus, ProductStatus, ProductType, type ProductVariant, ProductVariantStatus, type Promotion, type PromotionApplicationMethod, type PromotionApplicationMethodInput, type PromotionApplicationMethodPromotionRule, PromotionApplicationType, type PromotionListFilters, type PromotionPromotionRule, type PromotionRule, type PromotionRuleInput, PromotionRuleOperator, type PromotionRuleValue, PromotionStatus, PromotionTargetType, PromotionType, PubSubTopics, type RealtimeAnalytics, type RecentEvent, type Role, type RolePermissionLink, type RoundingConfig, RoundingMethod, RoundingRule, SUPPORTED_COUNTRIES, type SameDayCutoffParams, type Seller, type SellerPeriodBalance, type ServiceBillingPlan, type ServiceBillingPlanLimits, type ServiceBillingPlanPrice, type ServiceBillingPlanSpec, type ServiceBillingPlanSpecCategory, type ServiceBillingPlanSpecItem, type SessionHeartbeatDto, type StandardCategory, StandardCategoryStatus, type StatusChangeHistory, type StatusFlow, type StoreBanner, StoreBannerStatus, type StoreComponentTemplate, type StoreCustomization, type StoreCustomizationComponentSettings, type StoreCustomizationFooterZone, type StoreCustomizationHeaderZone, type StoreCustomizationLayout, type StoreCustomizationLayoutComponent, type StoreCustomizationLayoutLegacy, type StoreCustomizationPage, type StoreCustomizationPageComponent, type StoreCustomizationSeo, type StoreCustomizationThemeButtons, type StoreCustomizationThemeColors, type StoreCustomizationThemeTypography, type StorePage, StorePageStatus, StorePageType, type StoreSettings, type StoreTemplate, type StoreTemplateMocks, type SupportConversation, SupportConversationChannel, type SupportConversationMessage, SupportConversationMessageAiAnalysisStatus, SupportConversationMessageDeliveryStatus, SupportConversationMessageDirection, SupportConversationMessageSenderType, SupportConversationPriority, SupportConversationStatus, SupportConversationVisibility, type SupportedCountryCode, type SurfaceColors, type ThemeBorderRadius, type ThemeBorderWidth, type ThemeBorders, type ThemeButtonSize, type ThemeButtonSizes, type ThemeButtonVariant, type ThemeButtonVariants, type ThemeButtons, type ThemeColorPalette, type ThemeConfig, type ThemeFonts, type ThemeProductCard, type ThemeShadows, type ThemeSpacing, type ThemeTypography, type ThemeTypographySizes, type ThemeTypographyStyles, type TopPagesData, type TrackEventDto, type TrackPageviewDto, TrafficSource, type TrafficSourceItem, type TrafficSourcesData, type TypographyStyle, type UnifiedDeliveryConfig, type UpdateAccountDeliveryOptionDTO, type UpdateAccountExchangeRateAllDto, type UpdateAccountExchangeRateDto, type UpdateCollectionDTO, type UpdateDeliveryOptionRuleDTO, type UpdateExchangeRateDto, type UpdateFulfillmentDto, type UpdateLeadDTO, type UpdateNotificationSettingsDTO, type UpdatePromotionDTO, type UpdateRoleDTO, type UpdateStoreComponentTemplateDTO, type UpdateStoreTemplateDTO, type Webhook, type WebhookPayload, aiCreditsPerSubscriptionInstallment, contractTermMonths, getAccountPaymentMethodStatusInfo, getCountryDefaults, getCurrencySymbol, getDisplayOrderStatus, getDisplayOrderStatusInfo, getFulfillmentStatusInfo, getIntegrationCategoryName, getOrderPaymentStatusInfo, getOrderStatusInfo, getPaymentCardBrand, getPaymentStatusInfo, getProductStatusInfo, isLeadDealStage, isLegacyLayout, isSupportedCountry, isZonedLayout, parsePriceFormatPattern, paymentFrequencyMonths, resolveChargeCurrency, resolveEffectivePaymentFrequency, subscriptionAmountPerInstallment, subscriptionInstallmentCount };
|
package/dist/index.d.ts
CHANGED
|
@@ -678,6 +678,114 @@ interface StatusInfo {
|
|
|
678
678
|
actionText?: string;
|
|
679
679
|
}
|
|
680
680
|
|
|
681
|
+
interface AccountExchangeRate extends BaseEntityWithAccount {
|
|
682
|
+
id: string;
|
|
683
|
+
accountId: string;
|
|
684
|
+
baseCurrency: Currency;
|
|
685
|
+
targetCurrency: Currency;
|
|
686
|
+
configurationType: AccountExchangeRateType;
|
|
687
|
+
manualRate?: number;
|
|
688
|
+
adjustmentPercentage?: number;
|
|
689
|
+
roundingConfig?: RoundingConfig;
|
|
690
|
+
isActive: boolean;
|
|
691
|
+
lastManualUpdate?: Date;
|
|
692
|
+
metadata?: AccountExchangeRateMetadata;
|
|
693
|
+
createdAt: Date;
|
|
694
|
+
updatedAt: Date;
|
|
695
|
+
deletedAt?: Date;
|
|
696
|
+
}
|
|
697
|
+
declare enum AccountExchangeRateType {
|
|
698
|
+
AUTOMATIC = "AUTOMATIC",
|
|
699
|
+
AUTOMATIC_WITH_ADJUSTMENT = "AUTOMATIC_WITH_ADJUSTMENT",
|
|
700
|
+
MANUAL = "MANUAL"
|
|
701
|
+
}
|
|
702
|
+
interface RoundingConfig {
|
|
703
|
+
method: RoundingMethod;
|
|
704
|
+
decimalPlaces: number;
|
|
705
|
+
roundingRule?: RoundingRule;
|
|
706
|
+
}
|
|
707
|
+
declare enum RoundingMethod {
|
|
708
|
+
ROUND = "ROUND",
|
|
709
|
+
CEIL = "CEIL",
|
|
710
|
+
FLOOR = "FLOOR",
|
|
711
|
+
BANKERS = "BANKERS"
|
|
712
|
+
}
|
|
713
|
+
declare enum RoundingRule {
|
|
714
|
+
ROUND_TO_5_CENTS = "ROUND_TO_5_CENTS",
|
|
715
|
+
ROUND_TO_10_CENTS = "ROUND_TO_10_CENTS",
|
|
716
|
+
NONE = "NONE"
|
|
717
|
+
}
|
|
718
|
+
interface AccountExchangeRateMetadata {
|
|
719
|
+
description?: string;
|
|
720
|
+
notes?: string;
|
|
721
|
+
[key: string]: any;
|
|
722
|
+
}
|
|
723
|
+
interface CreateAccountExchangeRateDto {
|
|
724
|
+
baseCurrency: Currency;
|
|
725
|
+
targetCurrency: Currency;
|
|
726
|
+
configurationType: AccountExchangeRateType;
|
|
727
|
+
manualRate?: number;
|
|
728
|
+
adjustmentPercentage?: number;
|
|
729
|
+
roundingConfig?: RoundingConfig;
|
|
730
|
+
metadata?: AccountExchangeRateMetadata;
|
|
731
|
+
}
|
|
732
|
+
interface UpdateAccountExchangeRateDto {
|
|
733
|
+
configurationType?: AccountExchangeRateType;
|
|
734
|
+
manualRate?: number;
|
|
735
|
+
adjustmentPercentage?: number;
|
|
736
|
+
roundingConfig?: RoundingConfig;
|
|
737
|
+
isActive?: boolean;
|
|
738
|
+
metadata?: AccountExchangeRateMetadata;
|
|
739
|
+
}
|
|
740
|
+
interface AccountExchangeRateQueryDto {
|
|
741
|
+
baseCurrency?: Currency;
|
|
742
|
+
targetCurrency?: Currency;
|
|
743
|
+
configurationType?: AccountExchangeRateType;
|
|
744
|
+
isActive?: boolean;
|
|
745
|
+
limit?: number;
|
|
746
|
+
offset?: number;
|
|
747
|
+
}
|
|
748
|
+
interface AccountExchangeRateResponse {
|
|
749
|
+
item: AccountExchangeRate;
|
|
750
|
+
}
|
|
751
|
+
interface UpdateAccountExchangeRateAllDto {
|
|
752
|
+
globalConfig?: any;
|
|
753
|
+
rates: Array<{
|
|
754
|
+
id?: string;
|
|
755
|
+
targetCurrency: Currency;
|
|
756
|
+
configurationType: AccountExchangeRateType;
|
|
757
|
+
manualRate?: number;
|
|
758
|
+
adjustmentPercentage?: number;
|
|
759
|
+
roundingConfig?: RoundingConfig;
|
|
760
|
+
}>;
|
|
761
|
+
}
|
|
762
|
+
interface AccountExchangeRateListResponse {
|
|
763
|
+
storeCurrency: Currency;
|
|
764
|
+
paymentCurrencies: Currency[];
|
|
765
|
+
rates: AccountExchangeRateWithEffectiveRate[];
|
|
766
|
+
}
|
|
767
|
+
interface AccountExchangeRateWithEffectiveRate extends AccountExchangeRate {
|
|
768
|
+
effectiveRate: number;
|
|
769
|
+
baseGlobalRate: number;
|
|
770
|
+
source: string;
|
|
771
|
+
effectiveDate: Date;
|
|
772
|
+
}
|
|
773
|
+
interface AccountCurrencyConfig {
|
|
774
|
+
accountId: string;
|
|
775
|
+
primaryCurrency: Currency;
|
|
776
|
+
exchangeRates: AccountExchangeRate[];
|
|
777
|
+
effectiveRates: EffectiveExchangeRate[];
|
|
778
|
+
}
|
|
779
|
+
interface EffectiveExchangeRate {
|
|
780
|
+
baseCurrency: Currency;
|
|
781
|
+
targetCurrency: Currency;
|
|
782
|
+
effectiveRate: number;
|
|
783
|
+
baseGlobalRate: number;
|
|
784
|
+
configurationType: AccountExchangeRateType;
|
|
785
|
+
effectiveDate: Date;
|
|
786
|
+
source: string;
|
|
787
|
+
}
|
|
788
|
+
|
|
681
789
|
declare enum AccountPaymentMethodStatus {
|
|
682
790
|
ACTIVE = "ACTIVE",// Active
|
|
683
791
|
INACTIVE = "INACTIVE"
|
|
@@ -700,10 +808,26 @@ interface AccountPaymentMethod {
|
|
|
700
808
|
account?: Account;
|
|
701
809
|
statusInfo?: StatusInfo;
|
|
702
810
|
typeName?: string;
|
|
811
|
+
/** Currency the gateway will charge in (API-resolved; do not infer from provider in UI). */
|
|
812
|
+
chargeCurrency?: Currency;
|
|
813
|
+
/** Present when account store currency differs from chargeCurrency and a rate exists. */
|
|
814
|
+
exchangeRate?: EffectiveExchangeRate;
|
|
703
815
|
}
|
|
704
816
|
|
|
705
817
|
declare function getAccountPaymentMethodStatusInfo(status: AccountPaymentMethodStatus): StatusInfo;
|
|
706
818
|
|
|
819
|
+
/**
|
|
820
|
+
* Currency in which the payment gateway will settle the charge for checkout.
|
|
821
|
+
* Centralizes provider-specific rules; consumers (e.g. storefront) should use
|
|
822
|
+
* {@link AccountPaymentMethod.chargeCurrency} from the API instead of branching on providerKey.
|
|
823
|
+
*/
|
|
824
|
+
declare function resolveChargeCurrency(params: {
|
|
825
|
+
providerKey?: string | null;
|
|
826
|
+
settingsCurrency?: string | null;
|
|
827
|
+
/** Store / account currency; used when settings omit currency or for MANUAL_PAYMENT. */
|
|
828
|
+
accountCurrency?: string | null;
|
|
829
|
+
}): Currency | undefined;
|
|
830
|
+
|
|
707
831
|
/**
|
|
708
832
|
* Entidad Customer
|
|
709
833
|
* Cliente de la tienda
|
|
@@ -987,7 +1111,7 @@ interface Payment {
|
|
|
987
1111
|
canRefund: boolean;
|
|
988
1112
|
};
|
|
989
1113
|
}
|
|
990
|
-
type PaymentProviderKey = 'MERCADOPAGO' | 'MERCADOPAGO_MARKETPLACE' | 'PLEXO' | 'MANUAL_PAYMENT';
|
|
1114
|
+
type PaymentProviderKey = 'MERCADOPAGO' | 'MERCADOPAGO_MARKETPLACE' | 'PLEXO' | 'MANUAL_PAYMENT' | 'PAYPAL';
|
|
991
1115
|
interface PaymentProviderContext {
|
|
992
1116
|
data: Record<string, unknown>;
|
|
993
1117
|
}
|
|
@@ -2760,114 +2884,6 @@ interface CurrencyConversion {
|
|
|
2760
2884
|
source: string;
|
|
2761
2885
|
}
|
|
2762
2886
|
|
|
2763
|
-
interface AccountExchangeRate extends BaseEntityWithAccount {
|
|
2764
|
-
id: string;
|
|
2765
|
-
accountId: string;
|
|
2766
|
-
baseCurrency: Currency;
|
|
2767
|
-
targetCurrency: Currency;
|
|
2768
|
-
configurationType: AccountExchangeRateType;
|
|
2769
|
-
manualRate?: number;
|
|
2770
|
-
adjustmentPercentage?: number;
|
|
2771
|
-
roundingConfig?: RoundingConfig;
|
|
2772
|
-
isActive: boolean;
|
|
2773
|
-
lastManualUpdate?: Date;
|
|
2774
|
-
metadata?: AccountExchangeRateMetadata;
|
|
2775
|
-
createdAt: Date;
|
|
2776
|
-
updatedAt: Date;
|
|
2777
|
-
deletedAt?: Date;
|
|
2778
|
-
}
|
|
2779
|
-
declare enum AccountExchangeRateType {
|
|
2780
|
-
AUTOMATIC = "AUTOMATIC",
|
|
2781
|
-
AUTOMATIC_WITH_ADJUSTMENT = "AUTOMATIC_WITH_ADJUSTMENT",
|
|
2782
|
-
MANUAL = "MANUAL"
|
|
2783
|
-
}
|
|
2784
|
-
interface RoundingConfig {
|
|
2785
|
-
method: RoundingMethod;
|
|
2786
|
-
decimalPlaces: number;
|
|
2787
|
-
roundingRule?: RoundingRule;
|
|
2788
|
-
}
|
|
2789
|
-
declare enum RoundingMethod {
|
|
2790
|
-
ROUND = "ROUND",
|
|
2791
|
-
CEIL = "CEIL",
|
|
2792
|
-
FLOOR = "FLOOR",
|
|
2793
|
-
BANKERS = "BANKERS"
|
|
2794
|
-
}
|
|
2795
|
-
declare enum RoundingRule {
|
|
2796
|
-
ROUND_TO_5_CENTS = "ROUND_TO_5_CENTS",
|
|
2797
|
-
ROUND_TO_10_CENTS = "ROUND_TO_10_CENTS",
|
|
2798
|
-
NONE = "NONE"
|
|
2799
|
-
}
|
|
2800
|
-
interface AccountExchangeRateMetadata {
|
|
2801
|
-
description?: string;
|
|
2802
|
-
notes?: string;
|
|
2803
|
-
[key: string]: any;
|
|
2804
|
-
}
|
|
2805
|
-
interface CreateAccountExchangeRateDto {
|
|
2806
|
-
baseCurrency: Currency;
|
|
2807
|
-
targetCurrency: Currency;
|
|
2808
|
-
configurationType: AccountExchangeRateType;
|
|
2809
|
-
manualRate?: number;
|
|
2810
|
-
adjustmentPercentage?: number;
|
|
2811
|
-
roundingConfig?: RoundingConfig;
|
|
2812
|
-
metadata?: AccountExchangeRateMetadata;
|
|
2813
|
-
}
|
|
2814
|
-
interface UpdateAccountExchangeRateDto {
|
|
2815
|
-
configurationType?: AccountExchangeRateType;
|
|
2816
|
-
manualRate?: number;
|
|
2817
|
-
adjustmentPercentage?: number;
|
|
2818
|
-
roundingConfig?: RoundingConfig;
|
|
2819
|
-
isActive?: boolean;
|
|
2820
|
-
metadata?: AccountExchangeRateMetadata;
|
|
2821
|
-
}
|
|
2822
|
-
interface AccountExchangeRateQueryDto {
|
|
2823
|
-
baseCurrency?: Currency;
|
|
2824
|
-
targetCurrency?: Currency;
|
|
2825
|
-
configurationType?: AccountExchangeRateType;
|
|
2826
|
-
isActive?: boolean;
|
|
2827
|
-
limit?: number;
|
|
2828
|
-
offset?: number;
|
|
2829
|
-
}
|
|
2830
|
-
interface AccountExchangeRateResponse {
|
|
2831
|
-
item: AccountExchangeRate;
|
|
2832
|
-
}
|
|
2833
|
-
interface UpdateAccountExchangeRateAllDto {
|
|
2834
|
-
globalConfig?: any;
|
|
2835
|
-
rates: Array<{
|
|
2836
|
-
id?: string;
|
|
2837
|
-
targetCurrency: Currency;
|
|
2838
|
-
configurationType: AccountExchangeRateType;
|
|
2839
|
-
manualRate?: number;
|
|
2840
|
-
adjustmentPercentage?: number;
|
|
2841
|
-
roundingConfig?: RoundingConfig;
|
|
2842
|
-
}>;
|
|
2843
|
-
}
|
|
2844
|
-
interface AccountExchangeRateListResponse {
|
|
2845
|
-
storeCurrency: Currency;
|
|
2846
|
-
paymentCurrencies: Currency[];
|
|
2847
|
-
rates: AccountExchangeRateWithEffectiveRate[];
|
|
2848
|
-
}
|
|
2849
|
-
interface AccountExchangeRateWithEffectiveRate extends AccountExchangeRate {
|
|
2850
|
-
effectiveRate: number;
|
|
2851
|
-
baseGlobalRate: number;
|
|
2852
|
-
source: string;
|
|
2853
|
-
effectiveDate: Date;
|
|
2854
|
-
}
|
|
2855
|
-
interface AccountCurrencyConfig {
|
|
2856
|
-
accountId: string;
|
|
2857
|
-
primaryCurrency: Currency;
|
|
2858
|
-
exchangeRates: AccountExchangeRate[];
|
|
2859
|
-
effectiveRates: EffectiveExchangeRate[];
|
|
2860
|
-
}
|
|
2861
|
-
interface EffectiveExchangeRate {
|
|
2862
|
-
baseCurrency: Currency;
|
|
2863
|
-
targetCurrency: Currency;
|
|
2864
|
-
effectiveRate: number;
|
|
2865
|
-
baseGlobalRate: number;
|
|
2866
|
-
configurationType: AccountExchangeRateType;
|
|
2867
|
-
effectiveDate: Date;
|
|
2868
|
-
source: string;
|
|
2869
|
-
}
|
|
2870
|
-
|
|
2871
2887
|
interface StoreSettings {
|
|
2872
2888
|
id: string;
|
|
2873
2889
|
accountId: string;
|
|
@@ -3738,4 +3754,4 @@ interface GestionLoginAttempt {
|
|
|
3738
3754
|
createdAt: Date;
|
|
3739
3755
|
}
|
|
3740
3756
|
|
|
3741
|
-
export { type Account, type AccountAiCreditTransaction, type AccountAiCredits, type AccountBillingProfile, type AccountBranch, type AccountBranchSchedule, AccountBranchScheduleDay, AccountBranchScheduleStatus, AccountBranchStatus, type AccountCurrencyConfig, type AccountDeliveryOption, type AccountDeliveryOptionCalculatedCost, AccountDeliveryOptionPriceLogic, type AccountDeliveryOptionRule, AccountDeliveryOptionStatus, type AccountDeliveryOptionZone, AccountDeliveryOptionZoneStatus, type AccountDomain, AccountDomainStatus, type AccountEmailDomain, AccountEmailDomainStatus, type AccountExchangeRate, type AccountExchangeRateListResponse, type AccountExchangeRateMetadata, type AccountExchangeRateQueryDto, type AccountExchangeRateResponse, AccountExchangeRateType, type AccountExchangeRateWithEffectiveRate, type AccountHolidaySchedule, type AccountIntegration, type AccountIntegrationConfigDTO, AccountIntegrationConnectionStatus, AccountIntegrationEnvironment, AccountIntegrationStatus, type AccountMailbox, type AccountPaymentMethod, AccountPaymentMethodStatus, type AccountServiceBillingCharge, type AccountServicePlan, AccountServicePlanStatus, AccountStatus, type AccountUserRoleLink, type ActiveSession, type Address, type AdminOrderStatusChangeDto, AiCreditSource, AiCreditTransactionReason, AiCreditType, type AiCreditsBalance, type AnalyticsEvent, AnalyticsEventType, type AnalyticsFunnelStep, type AnalyticsOverview, type AnalyticsPageview, type AnalyticsPagination, type AnalyticsQueryParams, type AnalyticsSession, type BaseEntity, type BaseEntityWithAccount, type BaseEntityWithAccountAndUser, type BaseEntityWithUser, BillingInterval, BillingSociety, type BufferSafetyMarginParams, type BusinessDaysParams, type ButtonStyle, COUNTRY_DEFAULTS, type Campaign, type CampaignBudget, CampaignBudgetType, type CampaignBudgetUsage, type CampaignData, type CampaignPerformance, CampaignStatus, type Cart, type CartConfirmDto, type CartDeliveryMethod, type CartDeliveryMethodAdjustment, type CartDeliveryMethodCreateData, type CartDeliveryMethodCreateDto, type CartDeliveryMethodFindParams, type CartDeliveryMethodResponse, type CartDeliveryMethodUpdateData, type CartDeliveryMethodUpdateDto, CartDeliveryType, type CartItem, type CartItemAddDto, type CartItemAttributeDetail, CartItemErrorCode, type CartItemRemoveDto, type CartItemUpdateDto, type CartItemValidation, type CartLineItemAdjustment, type CartPromotion, CartSource, CartStatus, type CartUpdateDto, type ChargeSellerAllocation, ChargeStatus, ChargeType, type Collection, type CollectionMedia, type CollectionProductLink, type CollectionRule, CollectionRuleField, CollectionRuleFieldLabels, CollectionRuleOperator, CollectionRuleOperatorLabels, CollectionRulesLogic, CollectionStatus, CollectionStatusLabels, CollectionType, CollectionTypeLabels, type ColorVariant, type CountryDefaultBranchAddress, type CountryDefaultConfig, type CountryDefaultTax, type CreateAccountDeliveryOptionDTO, type CreateAccountExchangeRateDto, type CreateAnalyticsSessionDto, type CreateCollectionDTO, type CreateDeliveryOptionDto, type CreateDeliveryOptionRuleDTO, type CreateExchangeRateDto, type CreateFulfillmentDto, type CreateFulfillmentItemDto, type CreateLeadActivityDTO, type CreateLeadDTO, type CreatePromotionDTO, type CreateRoleDTO, type CreateStoreComponentTemplateDTO, type CreateStoreTemplateDTO, Currency, type CurrencyConversion, type Customer, type CustomerNotificationConfig, CustomerStatus, type CustomerUpsertDto, DayOfWeek, type DeliveryDaysParams, type DeliveryHoursParams, DeliveryOptionRuleType, DeliveryType, type DeliveryZoneInput, type DesignTokens, DeviceType, DisplayOrderStatus, type EffectiveExchangeRate, type ExchangeRate, type ExchangeRateListResponse, type ExchangeRateMetadata, type ExchangeRateQueryDto, type ExchangeRateResponse, type FixedOffsetDaysParams, type Fulfillment, type FulfillmentDeliveryOption, type FulfillmentItem, type FulfillmentLabel, type FulfillmentLabelCreateData, type FulfillmentLabelUpdateData, type FulfillmentProviderAdapter, type FulfillmentProviderContext, type FulfillmentProviderCreateInput, type FulfillmentProviderCreateOutput, type FulfillmentProviderKey, type FulfillmentProviderProcessWebhookInput, type FulfillmentProviderProcessWebhookOutput, type FulfillmentRecollectionCapabilities, type FulfillmentRecollectionConfig, type FulfillmentRecollectionMode, type FulfillmentRecollectionSchedule, FulfillmentStatus, type FulfillmentTrackingEvent, type FunnelData, FunnelStep, type FunnelStepData, type GeoZone, type GeoZoneInput, GeoZoneStatus, type GestionLoginAttempt, type GestionSession, type GestionUser, GestionUserRole, GestionUserStatus, type HistoricalDataPoint, type Holiday, HolidayType, type Integration, IntegrationCategory, type IntegrationDeliveryZone, IntegrationDeliveryZoneStatus, IntegrationStatus, type InternalNotificationConfig, InternalNotificationType, LEAD_DEAL_STAGES, LEAD_DEAL_STAGE_ORDER, type Lead, type LeadActivity, type LeadActivityType, type LeadCrmDashboardSummary, type LeadDealStage, type LeadLostReason, type LeadPriority, type LeadSource, type LinkButtonStyle, type MapPosition, type Media, MediaType, NavigationItemType, type NavigationMenuConfig, type NavigationMenuItem, type NeutralColorScale, type NextStatusAction, type Order, type OrderCreateFromCartDto, type OrderDeliveryMethod, type OrderDeliveryMethodAdjustment, type OrderDeliveryMethodCreateData, type OrderDeliveryMethodUpdateData, OrderDeliveryType, type OrderItem, type OrderItemSnapshot, type OrderLineItemAdjustment, OrderPaymentStatus, type OrderPromotion, OrderSource, OrderStatus, type PageData, PageType, type Payment, type PaymentCardBrand, PaymentCardBrandKey, type PaymentConversion, PaymentFrequency, PaymentMethodType, type PaymentProviderAdapter, type PaymentProviderCaptureInput, type PaymentProviderCaptureOutput, type PaymentProviderContext, type PaymentProviderInitInput, type PaymentProviderInitOutput, type PaymentProviderKey, type PaymentProviderRefundInput, type PaymentProviderRefundOutput, type PaymentProviderWebhookResult, PaymentStatus, type Permission, type Phone, type PickupLocation, type PickupReadyHoursParams, type ProcessingDaysParams, type Product, type ProductAnalyticsData, type ProductAnalyticsItem, type ProductAttribute, type ProductAttributeOption, ProductAttributeStatus, ProductAttributeType, type ProductCategory, ProductCategoryStatus, ProductStatus, ProductType, type ProductVariant, ProductVariantStatus, type Promotion, type PromotionApplicationMethod, type PromotionApplicationMethodInput, type PromotionApplicationMethodPromotionRule, PromotionApplicationType, type PromotionListFilters, type PromotionPromotionRule, type PromotionRule, type PromotionRuleInput, PromotionRuleOperator, type PromotionRuleValue, PromotionStatus, PromotionTargetType, PromotionType, PubSubTopics, type RealtimeAnalytics, type RecentEvent, type Role, type RolePermissionLink, type RoundingConfig, RoundingMethod, RoundingRule, SUPPORTED_COUNTRIES, type SameDayCutoffParams, type Seller, type SellerPeriodBalance, type ServiceBillingPlan, type ServiceBillingPlanLimits, type ServiceBillingPlanPrice, type ServiceBillingPlanSpec, type ServiceBillingPlanSpecCategory, type ServiceBillingPlanSpecItem, type SessionHeartbeatDto, type StandardCategory, StandardCategoryStatus, type StatusChangeHistory, type StatusFlow, type StoreBanner, StoreBannerStatus, type StoreComponentTemplate, type StoreCustomization, type StoreCustomizationComponentSettings, type StoreCustomizationFooterZone, type StoreCustomizationHeaderZone, type StoreCustomizationLayout, type StoreCustomizationLayoutComponent, type StoreCustomizationLayoutLegacy, type StoreCustomizationPage, type StoreCustomizationPageComponent, type StoreCustomizationSeo, type StoreCustomizationThemeButtons, type StoreCustomizationThemeColors, type StoreCustomizationThemeTypography, type StorePage, StorePageStatus, StorePageType, type StoreSettings, type StoreTemplate, type StoreTemplateMocks, type SupportConversation, SupportConversationChannel, type SupportConversationMessage, SupportConversationMessageAiAnalysisStatus, SupportConversationMessageDeliveryStatus, SupportConversationMessageDirection, SupportConversationMessageSenderType, SupportConversationPriority, SupportConversationStatus, SupportConversationVisibility, type SupportedCountryCode, type SurfaceColors, type ThemeBorderRadius, type ThemeBorderWidth, type ThemeBorders, type ThemeButtonSize, type ThemeButtonSizes, type ThemeButtonVariant, type ThemeButtonVariants, type ThemeButtons, type ThemeColorPalette, type ThemeConfig, type ThemeFonts, type ThemeProductCard, type ThemeShadows, type ThemeSpacing, type ThemeTypography, type ThemeTypographySizes, type ThemeTypographyStyles, type TopPagesData, type TrackEventDto, type TrackPageviewDto, TrafficSource, type TrafficSourceItem, type TrafficSourcesData, type TypographyStyle, type UnifiedDeliveryConfig, type UpdateAccountDeliveryOptionDTO, type UpdateAccountExchangeRateAllDto, type UpdateAccountExchangeRateDto, type UpdateCollectionDTO, type UpdateDeliveryOptionRuleDTO, type UpdateExchangeRateDto, type UpdateFulfillmentDto, type UpdateLeadDTO, type UpdateNotificationSettingsDTO, type UpdatePromotionDTO, type UpdateRoleDTO, type UpdateStoreComponentTemplateDTO, type UpdateStoreTemplateDTO, type Webhook, type WebhookPayload, aiCreditsPerSubscriptionInstallment, contractTermMonths, getAccountPaymentMethodStatusInfo, getCountryDefaults, getCurrencySymbol, getDisplayOrderStatus, getDisplayOrderStatusInfo, getFulfillmentStatusInfo, getIntegrationCategoryName, getOrderPaymentStatusInfo, getOrderStatusInfo, getPaymentCardBrand, getPaymentStatusInfo, getProductStatusInfo, isLeadDealStage, isLegacyLayout, isSupportedCountry, isZonedLayout, parsePriceFormatPattern, paymentFrequencyMonths, resolveEffectivePaymentFrequency, subscriptionAmountPerInstallment, subscriptionInstallmentCount };
|
|
3757
|
+
export { type Account, type AccountAiCreditTransaction, type AccountAiCredits, type AccountBillingProfile, type AccountBranch, type AccountBranchSchedule, AccountBranchScheduleDay, AccountBranchScheduleStatus, AccountBranchStatus, type AccountCurrencyConfig, type AccountDeliveryOption, type AccountDeliveryOptionCalculatedCost, AccountDeliveryOptionPriceLogic, type AccountDeliveryOptionRule, AccountDeliveryOptionStatus, type AccountDeliveryOptionZone, AccountDeliveryOptionZoneStatus, type AccountDomain, AccountDomainStatus, type AccountEmailDomain, AccountEmailDomainStatus, type AccountExchangeRate, type AccountExchangeRateListResponse, type AccountExchangeRateMetadata, type AccountExchangeRateQueryDto, type AccountExchangeRateResponse, AccountExchangeRateType, type AccountExchangeRateWithEffectiveRate, type AccountHolidaySchedule, type AccountIntegration, type AccountIntegrationConfigDTO, AccountIntegrationConnectionStatus, AccountIntegrationEnvironment, AccountIntegrationStatus, type AccountMailbox, type AccountPaymentMethod, AccountPaymentMethodStatus, type AccountServiceBillingCharge, type AccountServicePlan, AccountServicePlanStatus, AccountStatus, type AccountUserRoleLink, type ActiveSession, type Address, type AdminOrderStatusChangeDto, AiCreditSource, AiCreditTransactionReason, AiCreditType, type AiCreditsBalance, type AnalyticsEvent, AnalyticsEventType, type AnalyticsFunnelStep, type AnalyticsOverview, type AnalyticsPageview, type AnalyticsPagination, type AnalyticsQueryParams, type AnalyticsSession, type BaseEntity, type BaseEntityWithAccount, type BaseEntityWithAccountAndUser, type BaseEntityWithUser, BillingInterval, BillingSociety, type BufferSafetyMarginParams, type BusinessDaysParams, type ButtonStyle, COUNTRY_DEFAULTS, type Campaign, type CampaignBudget, CampaignBudgetType, type CampaignBudgetUsage, type CampaignData, type CampaignPerformance, CampaignStatus, type Cart, type CartConfirmDto, type CartDeliveryMethod, type CartDeliveryMethodAdjustment, type CartDeliveryMethodCreateData, type CartDeliveryMethodCreateDto, type CartDeliveryMethodFindParams, type CartDeliveryMethodResponse, type CartDeliveryMethodUpdateData, type CartDeliveryMethodUpdateDto, CartDeliveryType, type CartItem, type CartItemAddDto, type CartItemAttributeDetail, CartItemErrorCode, type CartItemRemoveDto, type CartItemUpdateDto, type CartItemValidation, type CartLineItemAdjustment, type CartPromotion, CartSource, CartStatus, type CartUpdateDto, type ChargeSellerAllocation, ChargeStatus, ChargeType, type Collection, type CollectionMedia, type CollectionProductLink, type CollectionRule, CollectionRuleField, CollectionRuleFieldLabels, CollectionRuleOperator, CollectionRuleOperatorLabels, CollectionRulesLogic, CollectionStatus, CollectionStatusLabels, CollectionType, CollectionTypeLabels, type ColorVariant, type CountryDefaultBranchAddress, type CountryDefaultConfig, type CountryDefaultTax, type CreateAccountDeliveryOptionDTO, type CreateAccountExchangeRateDto, type CreateAnalyticsSessionDto, type CreateCollectionDTO, type CreateDeliveryOptionDto, type CreateDeliveryOptionRuleDTO, type CreateExchangeRateDto, type CreateFulfillmentDto, type CreateFulfillmentItemDto, type CreateLeadActivityDTO, type CreateLeadDTO, type CreatePromotionDTO, type CreateRoleDTO, type CreateStoreComponentTemplateDTO, type CreateStoreTemplateDTO, Currency, type CurrencyConversion, type Customer, type CustomerNotificationConfig, CustomerStatus, type CustomerUpsertDto, DayOfWeek, type DeliveryDaysParams, type DeliveryHoursParams, DeliveryOptionRuleType, DeliveryType, type DeliveryZoneInput, type DesignTokens, DeviceType, DisplayOrderStatus, type EffectiveExchangeRate, type ExchangeRate, type ExchangeRateListResponse, type ExchangeRateMetadata, type ExchangeRateQueryDto, type ExchangeRateResponse, type FixedOffsetDaysParams, type Fulfillment, type FulfillmentDeliveryOption, type FulfillmentItem, type FulfillmentLabel, type FulfillmentLabelCreateData, type FulfillmentLabelUpdateData, type FulfillmentProviderAdapter, type FulfillmentProviderContext, type FulfillmentProviderCreateInput, type FulfillmentProviderCreateOutput, type FulfillmentProviderKey, type FulfillmentProviderProcessWebhookInput, type FulfillmentProviderProcessWebhookOutput, type FulfillmentRecollectionCapabilities, type FulfillmentRecollectionConfig, type FulfillmentRecollectionMode, type FulfillmentRecollectionSchedule, FulfillmentStatus, type FulfillmentTrackingEvent, type FunnelData, FunnelStep, type FunnelStepData, type GeoZone, type GeoZoneInput, GeoZoneStatus, type GestionLoginAttempt, type GestionSession, type GestionUser, GestionUserRole, GestionUserStatus, type HistoricalDataPoint, type Holiday, HolidayType, type Integration, IntegrationCategory, type IntegrationDeliveryZone, IntegrationDeliveryZoneStatus, IntegrationStatus, type InternalNotificationConfig, InternalNotificationType, LEAD_DEAL_STAGES, LEAD_DEAL_STAGE_ORDER, type Lead, type LeadActivity, type LeadActivityType, type LeadCrmDashboardSummary, type LeadDealStage, type LeadLostReason, type LeadPriority, type LeadSource, type LinkButtonStyle, type MapPosition, type Media, MediaType, NavigationItemType, type NavigationMenuConfig, type NavigationMenuItem, type NeutralColorScale, type NextStatusAction, type Order, type OrderCreateFromCartDto, type OrderDeliveryMethod, type OrderDeliveryMethodAdjustment, type OrderDeliveryMethodCreateData, type OrderDeliveryMethodUpdateData, OrderDeliveryType, type OrderItem, type OrderItemSnapshot, type OrderLineItemAdjustment, OrderPaymentStatus, type OrderPromotion, OrderSource, OrderStatus, type PageData, PageType, type Payment, type PaymentCardBrand, PaymentCardBrandKey, type PaymentConversion, PaymentFrequency, PaymentMethodType, type PaymentProviderAdapter, type PaymentProviderCaptureInput, type PaymentProviderCaptureOutput, type PaymentProviderContext, type PaymentProviderInitInput, type PaymentProviderInitOutput, type PaymentProviderKey, type PaymentProviderRefundInput, type PaymentProviderRefundOutput, type PaymentProviderWebhookResult, PaymentStatus, type Permission, type Phone, type PickupLocation, type PickupReadyHoursParams, type ProcessingDaysParams, type Product, type ProductAnalyticsData, type ProductAnalyticsItem, type ProductAttribute, type ProductAttributeOption, ProductAttributeStatus, ProductAttributeType, type ProductCategory, ProductCategoryStatus, ProductStatus, ProductType, type ProductVariant, ProductVariantStatus, type Promotion, type PromotionApplicationMethod, type PromotionApplicationMethodInput, type PromotionApplicationMethodPromotionRule, PromotionApplicationType, type PromotionListFilters, type PromotionPromotionRule, type PromotionRule, type PromotionRuleInput, PromotionRuleOperator, type PromotionRuleValue, PromotionStatus, PromotionTargetType, PromotionType, PubSubTopics, type RealtimeAnalytics, type RecentEvent, type Role, type RolePermissionLink, type RoundingConfig, RoundingMethod, RoundingRule, SUPPORTED_COUNTRIES, type SameDayCutoffParams, type Seller, type SellerPeriodBalance, type ServiceBillingPlan, type ServiceBillingPlanLimits, type ServiceBillingPlanPrice, type ServiceBillingPlanSpec, type ServiceBillingPlanSpecCategory, type ServiceBillingPlanSpecItem, type SessionHeartbeatDto, type StandardCategory, StandardCategoryStatus, type StatusChangeHistory, type StatusFlow, type StoreBanner, StoreBannerStatus, type StoreComponentTemplate, type StoreCustomization, type StoreCustomizationComponentSettings, type StoreCustomizationFooterZone, type StoreCustomizationHeaderZone, type StoreCustomizationLayout, type StoreCustomizationLayoutComponent, type StoreCustomizationLayoutLegacy, type StoreCustomizationPage, type StoreCustomizationPageComponent, type StoreCustomizationSeo, type StoreCustomizationThemeButtons, type StoreCustomizationThemeColors, type StoreCustomizationThemeTypography, type StorePage, StorePageStatus, StorePageType, type StoreSettings, type StoreTemplate, type StoreTemplateMocks, type SupportConversation, SupportConversationChannel, type SupportConversationMessage, SupportConversationMessageAiAnalysisStatus, SupportConversationMessageDeliveryStatus, SupportConversationMessageDirection, SupportConversationMessageSenderType, SupportConversationPriority, SupportConversationStatus, SupportConversationVisibility, type SupportedCountryCode, type SurfaceColors, type ThemeBorderRadius, type ThemeBorderWidth, type ThemeBorders, type ThemeButtonSize, type ThemeButtonSizes, type ThemeButtonVariant, type ThemeButtonVariants, type ThemeButtons, type ThemeColorPalette, type ThemeConfig, type ThemeFonts, type ThemeProductCard, type ThemeShadows, type ThemeSpacing, type ThemeTypography, type ThemeTypographySizes, type ThemeTypographyStyles, type TopPagesData, type TrackEventDto, type TrackPageviewDto, TrafficSource, type TrafficSourceItem, type TrafficSourcesData, type TypographyStyle, type UnifiedDeliveryConfig, type UpdateAccountDeliveryOptionDTO, type UpdateAccountExchangeRateAllDto, type UpdateAccountExchangeRateDto, type UpdateCollectionDTO, type UpdateDeliveryOptionRuleDTO, type UpdateExchangeRateDto, type UpdateFulfillmentDto, type UpdateLeadDTO, type UpdateNotificationSettingsDTO, type UpdatePromotionDTO, type UpdateRoleDTO, type UpdateStoreComponentTemplateDTO, type UpdateStoreTemplateDTO, type Webhook, type WebhookPayload, aiCreditsPerSubscriptionInstallment, contractTermMonths, getAccountPaymentMethodStatusInfo, getCountryDefaults, getCurrencySymbol, getDisplayOrderStatus, getDisplayOrderStatusInfo, getFulfillmentStatusInfo, getIntegrationCategoryName, getOrderPaymentStatusInfo, getOrderStatusInfo, getPaymentCardBrand, getPaymentStatusInfo, getProductStatusInfo, isLeadDealStage, isLegacyLayout, isSupportedCountry, isZonedLayout, parsePriceFormatPattern, paymentFrequencyMonths, resolveChargeCurrency, resolveEffectivePaymentFrequency, subscriptionAmountPerInstallment, subscriptionInstallmentCount };
|
package/dist/index.js
CHANGED
|
@@ -138,6 +138,7 @@ __export(index_exports, {
|
|
|
138
138
|
isZonedLayout: () => isZonedLayout,
|
|
139
139
|
parsePriceFormatPattern: () => parsePriceFormatPattern,
|
|
140
140
|
paymentFrequencyMonths: () => paymentFrequencyMonths,
|
|
141
|
+
resolveChargeCurrency: () => resolveChargeCurrency,
|
|
141
142
|
resolveEffectivePaymentFrequency: () => resolveEffectivePaymentFrequency,
|
|
142
143
|
subscriptionAmountPerInstallment: () => subscriptionAmountPerInstallment,
|
|
143
144
|
subscriptionInstallmentCount: () => subscriptionInstallmentCount
|
|
@@ -453,6 +454,28 @@ function getAccountPaymentMethodStatusInfo(status) {
|
|
|
453
454
|
return map[status] ?? { text: String(status), class: "secondary" };
|
|
454
455
|
}
|
|
455
456
|
|
|
457
|
+
// src/accountPaymentMethod/resolveChargeCurrency.ts
|
|
458
|
+
function normalizedAccountCurrency(accountCurrency) {
|
|
459
|
+
const t = accountCurrency?.trim();
|
|
460
|
+
if (!t) return void 0;
|
|
461
|
+
return t;
|
|
462
|
+
}
|
|
463
|
+
function resolveChargeCurrency(params) {
|
|
464
|
+
const pk = params.providerKey?.toUpperCase();
|
|
465
|
+
if (pk === "PAYPAL") {
|
|
466
|
+
return "USD" /* USD */;
|
|
467
|
+
}
|
|
468
|
+
const accountCur = normalizedAccountCurrency(params.accountCurrency);
|
|
469
|
+
if (pk === "MANUAL_PAYMENT") {
|
|
470
|
+
return accountCur;
|
|
471
|
+
}
|
|
472
|
+
const raw = params.settingsCurrency?.trim();
|
|
473
|
+
if (!raw) {
|
|
474
|
+
return accountCur;
|
|
475
|
+
}
|
|
476
|
+
return raw;
|
|
477
|
+
}
|
|
478
|
+
|
|
456
479
|
// src/cart/types.ts
|
|
457
480
|
var CartStatus = /* @__PURE__ */ ((CartStatus2) => {
|
|
458
481
|
CartStatus2["ACTIVE"] = "ACTIVE";
|
|
@@ -1446,6 +1469,7 @@ var GestionUserStatus = /* @__PURE__ */ ((GestionUserStatus2) => {
|
|
|
1446
1469
|
isZonedLayout,
|
|
1447
1470
|
parsePriceFormatPattern,
|
|
1448
1471
|
paymentFrequencyMonths,
|
|
1472
|
+
resolveChargeCurrency,
|
|
1449
1473
|
resolveEffectivePaymentFrequency,
|
|
1450
1474
|
subscriptionAmountPerInstallment,
|
|
1451
1475
|
subscriptionInstallmentCount
|