@zonos/elements 1.3.234 → 1.3.235

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.
@@ -132,7 +132,7 @@ const getZonosQaUrl = () => {
132
132
  return null;
133
133
  }
134
134
  const qaUrl = extractZonosQaUrl(window.location.href);
135
- const cdnUrl = "https://v1.3.234.js.zonos.com";
135
+ const cdnUrl = "https://v1.3.235.js.zonos.com";
136
136
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
137
137
  if (!qaUrl &&
138
138
  (cdnUrl.includes('test.') ||
@@ -380,10 +380,10 @@ const zonosLoadUrl = (() => {
380
380
  return null;
381
381
  })();
382
382
  const startLoadTime = Date.now();
383
- const ZONOS_URL = "https://v1.3.234.js.zonos.com";
384
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.234";
385
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.234";
386
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.234";
383
+ const ZONOS_URL = "https://v1.3.235.js.zonos.com";
384
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.235";
385
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.235";
386
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.235";
387
387
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
388
388
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
389
389
  class Zonos {
@@ -401,7 +401,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
401
401
  ? new URLSearchParams(window.location.search).get('iframeLogType')
402
402
  : null;
403
403
  Zonos.isBigCommerce = false;
404
- Zonos.releaseDate = "1756353722333";
404
+ Zonos.releaseDate = "1759772542349";
405
405
  Zonos.isLegacyCheckout = false;
406
406
  Zonos.startLoadTime = startLoadTime;
407
407
  Zonos.domain = typeof window !== 'undefined'
@@ -422,7 +422,7 @@ Zonos.isNpm = true;
422
422
  Zonos.zonosQaUrl = null;
423
423
  Zonos.zonosQaUrlApi = null;
424
424
  Zonos.trackEventLogs = [];
425
- Zonos.version = `v${"1.3.234"}`;
425
+ Zonos.version = `v${"1.3.235"}`;
426
426
  Zonos.modeAlerted = false;
427
427
  Zonos.cartData = null;
428
428
  Zonos.paypal = null;
@@ -241,7 +241,9 @@ const ZonosInvoice = class {
241
241
  // Some merchants use landed cost id as the confirmation id
242
242
  this.confirmationId = ((_h = json === null || json === void 0 ? void 0 : json.checkoutSession.landedCost) === null || _h === void 0 ? void 0 : _h.shortId) || null;
243
243
  // If checkout session is already completed, set to finish step
244
- if (!!(json === null || json === void 0 ? void 0 : json.checkoutSession.completedAt)) {
244
+ if (!!(json === null || json === void 0 ? void 0 : json.checkoutSession.completedAt) &&
245
+ // For invoice that's set to expired, we set completedAt but no order attached. In that case should not set to finish step
246
+ !!json.checkoutSession.order) {
245
247
  void this.setToFinishStep('succeeded');
246
248
  return;
247
249
  }
@@ -238,7 +238,9 @@ export class ZonosInvoice {
238
238
  // Some merchants use landed cost id as the confirmation id
239
239
  this.confirmationId = ((_h = json === null || json === void 0 ? void 0 : json.checkoutSession.landedCost) === null || _h === void 0 ? void 0 : _h.shortId) || null;
240
240
  // If checkout session is already completed, set to finish step
241
- if (!!(json === null || json === void 0 ? void 0 : json.checkoutSession.completedAt)) {
241
+ if (!!(json === null || json === void 0 ? void 0 : json.checkoutSession.completedAt) &&
242
+ // For invoice that's set to expired, we set completedAt but no order attached. In that case should not set to finish step
243
+ !!json.checkoutSession.order) {
242
244
  void this.setToFinishStep('succeeded');
243
245
  return;
244
246
  }
@@ -3,6 +3,7 @@ export const cursorOrdering = {
3
3
  Desc: 'DESC',
4
4
  };
5
5
  export const errorProjectNameEnum = {
6
+ Account: 'account',
6
7
  Conductor: 'conductor',
7
8
  Dashboard: 'dashboard',
8
9
  DashboardExpo: 'dashboard_expo',
@@ -21,6 +22,7 @@ export const featureAspectKeyEnum = {
21
22
  DashboardNewLabelUi: 'dashboard_new_label_ui',
22
23
  DashboardOrderApprove: 'dashboard_order_approve',
23
24
  DashboardOrderApproveNoCapture: 'dashboard_order_approve_no_capture',
25
+ DashboardViewportInvoices: 'dashboard_viewport_invoices',
24
26
  Dashboard_909Settings: 'dashboard_909_settings',
25
27
  DocsSearchOpenAiQa: 'docs_search_open_ai_qa',
26
28
  ExploreFrontendMutation: 'explore_frontend_mutation',
@@ -43,6 +45,7 @@ export const featureAudienceNameEnum = {
43
45
  ClassifyBulkMerchant: 'classify_bulk_merchant',
44
46
  ClassifyBulkMerchantExportConfidenceScore: 'classify_bulk_merchant_export_confidence_score',
45
47
  CustomerSuccess: 'customer_success',
48
+ DashboardAuTop_100VerifiedAccounts: 'dashboard_au_top_100_verified_accounts',
46
49
  DashboardChurnedNotificationMerchant: 'dashboard_churned_notification_merchant',
47
50
  DashboardLabelBetaMerchant: 'dashboard_label_beta_merchant',
48
51
  Designer: 'designer',
@@ -454,6 +457,7 @@ export const promptBulkJobProjectLabelEnum = {
454
457
  ZonosComDynamicTranslate: 'zonos_com_dynamic_translate',
455
458
  ZonosComInlineTranslate: 'zonos_com_inline_translate',
456
459
  ZonosComMdxTranslate: 'zonos_com_mdx_translate',
460
+ ZonosPrepayInlineTranslate: 'zonos_prepay_inline_translate',
457
461
  };
458
462
  export const promptBulkJobStatusEnum = {
459
463
  Completed: 'completed',
@@ -65,6 +65,9 @@ export const alcoholRecipientType = {
65
65
  Consumer: 'CONSUMER',
66
66
  Licensee: 'LICENSEE',
67
67
  };
68
+ export const allOptIn = {
69
+ All: 'ALL',
70
+ };
68
71
  export const allowedCharacterSets = {
69
72
  All: 'ALL',
70
73
  Latin: 'LATIN',
@@ -131,6 +134,11 @@ export const auditLogChangeType = {
131
134
  Delete: 'DELETE',
132
135
  Update: 'UPDATE',
133
136
  };
137
+ export const authorizationExpiryBehavior = {
138
+ Capture: 'CAPTURE',
139
+ Ignore: 'IGNORE',
140
+ Void: 'VOID',
141
+ };
134
142
  export const batteryMaterialType = {
135
143
  LithiumIon: 'LITHIUM_ION',
136
144
  LithiumMetal: 'LITHIUM_METAL',
@@ -140,15 +148,24 @@ export const batteryPackingType = {
140
148
  BatteryOnly: 'BATTERY_ONLY',
141
149
  BatteryPackagedWithEquipment: 'BATTERY_PACKAGED_WITH_EQUIPMENT',
142
150
  };
151
+ export const billingCompanyAccountStanding = {
152
+ Current: 'CURRENT',
153
+ Delinquent: 'DELINQUENT',
154
+ };
143
155
  export const billingCompanyAccountType = {
144
156
  StripeBillingCustomer: 'STRIPE_BILLING_CUSTOMER',
145
157
  StripePaymentsConnectAccount: 'STRIPE_PAYMENTS_CONNECT_ACCOUNT',
158
+ StripePaymentsCustomer: 'STRIPE_PAYMENTS_CUSTOMER',
146
159
  StripeThirdPartyBillingCustomer: 'STRIPE_THIRD_PARTY_BILLING_CUSTOMER',
147
160
  };
148
161
  export const billingCompanyBusinessUnit = {
149
162
  Ecommerce: 'ECOMMERCE',
150
163
  SupplyChain: 'SUPPLY_CHAIN',
151
164
  };
165
+ export const billingCompanyInvoiceProcessor = {
166
+ Stripe: 'STRIPE',
167
+ Zonos: 'ZONOS',
168
+ };
152
169
  export const billingOptionCode = {
153
170
  DdpAndDdu: 'DDP_AND_DDU',
154
171
  ShipperOnly: 'SHIPPER_ONLY',
@@ -171,6 +188,12 @@ export const carrierAccountApiUsage = {
171
188
  Label: 'LABEL',
172
189
  Rating: 'RATING',
173
190
  };
191
+ export const carrierAccountCode = {
192
+ Apc: 'APC',
193
+ Dhl: 'DHL',
194
+ Fedex: 'FEDEX',
195
+ Ups: 'UPS',
196
+ };
174
197
  export const carrierAccountIntegrationType = {
175
198
  Rest: 'REST',
176
199
  Soap: 'SOAP',
@@ -254,8 +277,11 @@ export const carrierBillingInvoiceStatus = {
254
277
  };
255
278
  export const carrierCode = {
256
279
  Apc: 'APC',
280
+ CanadaPost: 'CANADA_POST',
257
281
  Dhl: 'DHL',
258
282
  DirectLink: 'DIRECT_LINK',
283
+ Ehub: 'EHUB',
284
+ Envia: 'ENVIA',
259
285
  Fedex: 'FEDEX',
260
286
  Fedexxb: 'FEDEXXB',
261
287
  GlobalAccess: 'GLOBAL_ACCESS',
@@ -345,6 +371,19 @@ export const catalogStatus = {
345
371
  Disabled: 'DISABLED',
346
372
  Enabled: 'ENABLED',
347
373
  };
374
+ export const cbpBatchType = {
375
+ Filed: 'FILED',
376
+ Paid: 'PAID',
377
+ };
378
+ export const cbpSubmissionStatus = {
379
+ Failed: 'FAILED',
380
+ Filed: 'FILED',
381
+ Paid: 'PAID',
382
+ Pending: 'PENDING',
383
+ Processing: 'PROCESSING',
384
+ Ready: 'READY',
385
+ Skipped: 'SKIPPED',
386
+ };
348
387
  export const checkoutCompanyFieldsStatus = {
349
388
  Disabled: 'DISABLED',
350
389
  Enabled: 'ENABLED',
@@ -968,9 +1007,18 @@ export const countryCode = {
968
1007
  Zm: 'ZM',
969
1008
  Zw: 'ZW',
970
1009
  };
1010
+ export const countryOfOriginJobStatus = {
1011
+ Completed: 'COMPLETED',
1012
+ Failed: 'FAILED',
1013
+ Parsing: 'PARSING',
1014
+ Processing: 'PROCESSING',
1015
+ ReadyForExport: 'READY_FOR_EXPORT',
1016
+ Received: 'RECEIVED',
1017
+ };
971
1018
  export const credentialProvider = {
972
1019
  General: 'GENERAL',
973
1020
  Organization: 'ORGANIZATION',
1021
+ Partner: 'PARTNER',
974
1022
  };
975
1023
  export const creditBehaviorTypeCode = {
976
1024
  CreditAccount: 'CREDIT_ACCOUNT',
@@ -1237,6 +1285,10 @@ export const deMinimisType = {
1237
1285
  Fee: 'FEE',
1238
1286
  Tax: 'TAX',
1239
1287
  };
1288
+ export const declarationOrderPaymentCapture = {
1289
+ Capture: 'CAPTURE',
1290
+ Ignore: 'IGNORE',
1291
+ };
1240
1292
  export const declarationPaymentStatus = {
1241
1293
  Open: 'OPEN',
1242
1294
  Paid: 'PAID',
@@ -1252,6 +1304,7 @@ export const declarationStatus = {
1252
1304
  Open: 'OPEN',
1253
1305
  PartiallyShipped: 'PARTIALLY_SHIPPED',
1254
1306
  Shipped: 'SHIPPED',
1307
+ Voided: 'VOIDED',
1255
1308
  };
1256
1309
  export const deleteJobStatus = {
1257
1310
  Completed: 'COMPLETED',
@@ -1343,7 +1396,10 @@ export const emailTemplateType = {
1343
1396
  CheckoutCollect: 'CHECKOUT_COLLECT',
1344
1397
  ClassificationExport: 'CLASSIFICATION_EXPORT',
1345
1398
  Custom: 'CUSTOM',
1399
+ DelinquentBillingCompany: 'DELINQUENT_BILLING_COMPANY',
1346
1400
  InclusivePriceExport: 'INCLUSIVE_PRICE_EXPORT',
1401
+ InvoiceReady: 'INVOICE_READY',
1402
+ InvoiceReceipt: 'INVOICE_RECEIPT',
1347
1403
  ManualClassificationExport: 'MANUAL_CLASSIFICATION_EXPORT',
1348
1404
  MerchantOrderConfirmation: 'MERCHANT_ORDER_CONFIRMATION',
1349
1405
  OrderCanceled: 'ORDER_CANCELED',
@@ -1351,6 +1407,8 @@ export const emailTemplateType = {
1351
1407
  OrderConfirmation: 'ORDER_CONFIRMATION',
1352
1408
  OrderReceipt: 'ORDER_RECEIPT',
1353
1409
  OrderShipped: 'ORDER_SHIPPED',
1410
+ PrepayCollect: 'PREPAY_COLLECT',
1411
+ ReportExport: 'REPORT_EXPORT',
1354
1412
  Unknown: 'UNKNOWN',
1355
1413
  };
1356
1414
  export const endOfDayBehavior = {
@@ -1409,6 +1467,11 @@ export const errorType = {
1409
1467
  Unavailable: 'UNAVAILABLE',
1410
1468
  Unknown: 'UNKNOWN',
1411
1469
  };
1470
+ export const exchangeRateSource = {
1471
+ Cbp: 'CBP',
1472
+ Fixer: 'FIXER',
1473
+ Static: 'STATIC',
1474
+ };
1412
1475
  export const exchangeRateTargetType = {
1413
1476
  BillingCompany: 'BILLING_COMPANY',
1414
1477
  MerchantBase: 'MERCHANT_BASE',
@@ -1440,10 +1503,6 @@ export const externalServiceTokenType = {
1440
1503
  PaypalClientId: 'PAYPAL_CLIENT_ID',
1441
1504
  StripePublishableToken: 'STRIPE_PUBLISHABLE_TOKEN',
1442
1505
  };
1443
- export const fdaIndicatorType = {
1444
- Applies: 'APPLIES',
1445
- DoesNotApply: 'DOES_NOT_APPLY',
1446
- };
1447
1506
  export const fedExCategoryCode = {
1448
1507
  Shipping: 'SHIPPING',
1449
1508
  };
@@ -1611,6 +1670,23 @@ export const invoiceCarrier = {
1611
1670
  Ups: 'UPS',
1612
1671
  Zonos: 'ZONOS',
1613
1672
  };
1673
+ export const invoiceCollectionMethod = {
1674
+ ChargeAutomatically: 'CHARGE_AUTOMATICALLY',
1675
+ CheckoutCollect: 'CHECKOUT_COLLECT',
1676
+ CreateOutstanding: 'CREATE_OUTSTANDING',
1677
+ SendInvoice: 'SEND_INVOICE',
1678
+ StripeBillingDraftInvoice: 'STRIPE_BILLING_DRAFT_INVOICE',
1679
+ StripeBillingInvoice: 'STRIPE_BILLING_INVOICE',
1680
+ };
1681
+ export const invoiceDayOfWeek = {
1682
+ Friday: 'FRIDAY',
1683
+ Monday: 'MONDAY',
1684
+ Saturday: 'SATURDAY',
1685
+ Sunday: 'SUNDAY',
1686
+ Thursday: 'THURSDAY',
1687
+ Tuesday: 'TUESDAY',
1688
+ Wednesday: 'WEDNESDAY',
1689
+ };
1614
1690
  export const invoiceLanguageCode = {
1615
1691
  Bg: 'BG',
1616
1692
  Cs: 'CS',
@@ -1654,6 +1730,19 @@ export const invoiceLanguageCode = {
1654
1730
  export const invoiceProcessor = {
1655
1731
  Stripe: 'STRIPE',
1656
1732
  };
1733
+ export const invoiceScheduleGlobalStatus = {
1734
+ Disabled: 'DISABLED',
1735
+ Enabled: 'ENABLED',
1736
+ };
1737
+ export const invoiceScheduleInterval = {
1738
+ Daily: 'DAILY',
1739
+ Monthly: 'MONTHLY',
1740
+ Weekly: 'WEEKLY',
1741
+ };
1742
+ export const invoiceSettingsStatus = {
1743
+ Disabled: 'DISABLED',
1744
+ Enabled: 'ENABLED',
1745
+ };
1657
1746
  export const invoiceStatus = {
1658
1747
  Received: 'RECEIVED',
1659
1748
  Reconciled: 'RECONCILED',
@@ -1777,6 +1866,8 @@ export const labelCarrierCode = {
1777
1866
  Apc: 'APC',
1778
1867
  Dhl: 'DHL',
1779
1868
  DirectLink: 'DIRECT_LINK',
1869
+ Ehub: 'EHUB',
1870
+ Envia: 'ENVIA',
1780
1871
  Fedex: 'FEDEX',
1781
1872
  Fedexxb: 'FEDEXXB',
1782
1873
  Ups: 'UPS',
@@ -1885,6 +1976,9 @@ export const landedCostBillingRuleDetailCategoryIdCreateType = {
1885
1976
  CheckoutTransactionPercent: 'CHECKOUT_TRANSACTION_PERCENT',
1886
1977
  CollectOrder: 'COLLECT_ORDER',
1887
1978
  CollectPercent: 'COLLECT_PERCENT',
1979
+ EtsyGuaranteeOrder: 'ETSY_GUARANTEE_ORDER',
1980
+ EtsyGuaranteePercent: 'ETSY_GUARANTEE_PERCENT',
1981
+ EtsyMerchantFeePercent: 'ETSY_MERCHANT_FEE_PERCENT',
1888
1982
  GuaranteeOrder: 'GUARANTEE_ORDER',
1889
1983
  ShopifyGuaranteeOrder: 'SHOPIFY_GUARANTEE_ORDER',
1890
1984
  ShopifyGuaranteeOrderLegacy: 'SHOPIFY_GUARANTEE_ORDER_LEGACY',
@@ -1902,14 +1996,17 @@ export const landedCostCalculationMethod = {
1902
1996
  ZonosConfigured: 'ZONOS_CONFIGURED',
1903
1997
  };
1904
1998
  export const landedCostEndUse = {
1999
+ Documents: 'DOCUMENTS',
1905
2000
  ForResale: 'FOR_RESALE',
1906
2001
  Gift: 'GIFT',
1907
2002
  NotForResale: 'NOT_FOR_RESALE',
2003
+ Return: 'RETURN',
1908
2004
  };
1909
2005
  export const landedCostFeeType = {
1910
2006
  AdditionalTariffLines: 'ADDITIONAL_TARIFF_LINES',
1911
2007
  Adjustment: 'ADJUSTMENT',
1912
2008
  Advancement: 'ADVANCEMENT',
2009
+ BondFee: 'BOND_FEE',
1913
2010
  BrokerageFee: 'BROKERAGE_FEE',
1914
2011
  Buffer: 'BUFFER',
1915
2012
  Cod: 'COD',
@@ -1918,8 +2015,12 @@ export const landedCostFeeType = {
1918
2015
  Country: 'COUNTRY',
1919
2016
  CurrencyConversionFee: 'CURRENCY_CONVERSION_FEE',
1920
2017
  DdpServiceFee: 'DDP_SERVICE_FEE',
2018
+ Disbursement: 'DISBURSEMENT',
2019
+ DisbursementFee: 'DISBURSEMENT_FEE',
2020
+ DisbursementProcessing: 'DISBURSEMENT_PROCESSING',
1921
2021
  Discount: 'DISCOUNT',
1922
2022
  Duty: 'DUTY',
2023
+ DutyFx: 'DUTY_FX',
1923
2024
  GuaranteeOrder: 'GUARANTEE_ORDER',
1924
2025
  GuaranteePercent: 'GUARANTEE_PERCENT',
1925
2026
  InclusivePriceAdjustment: 'INCLUSIVE_PRICE_ADJUSTMENT',
@@ -1928,6 +2029,13 @@ export const landedCostFeeType = {
1928
2029
  LandedCost: 'LANDED_COST',
1929
2030
  Other: 'OTHER',
1930
2031
  PartnerRevShare: 'PARTNER_REV_SHARE',
2032
+ PrepayDisbursement: 'PREPAY_DISBURSEMENT',
2033
+ PrepayDisbursementFee: 'PREPAY_DISBURSEMENT_FEE',
2034
+ PrepayFee: 'PREPAY_FEE',
2035
+ PrepayPercent: 'PREPAY_PERCENT',
2036
+ PrepayPhotoDiscount: 'PREPAY_PHOTO_DISCOUNT',
2037
+ RemittanceAmountRevenueShare: 'REMITTANCE_AMOUNT_REVENUE_SHARE',
2038
+ RemittanceFee: 'REMITTANCE_FEE',
1931
2039
  Shipping: 'SHIPPING',
1932
2040
  Tax: 'TAX',
1933
2041
  Transaction: 'TRANSACTION',
@@ -1963,9 +2071,12 @@ export const landedCostPaymentProcessor = {
1963
2071
  export const landedCostQuoteType = {
1964
2072
  Api: 'API',
1965
2073
  Auditing: 'AUDITING',
2074
+ CarrierPay: 'CARRIER_PAY',
1966
2075
  Checkout: 'CHECKOUT',
1967
2076
  Collect: 'COLLECT',
2077
+ Draft: 'DRAFT',
1968
2078
  Hello: 'HELLO',
2079
+ InclusiveConfiguration: 'INCLUSIVE_CONFIGURATION',
1969
2080
  InclusivePrice: 'INCLUSIVE_PRICE',
1970
2081
  Invoice: 'INVOICE',
1971
2082
  InvoiceCollect: 'INVOICE_COLLECT',
@@ -2109,6 +2220,32 @@ export const linkType = {
2109
2220
  AccountOnboarding: 'ACCOUNT_ONBOARDING',
2110
2221
  AccountUpdate: 'ACCOUNT_UPDATE',
2111
2222
  };
2223
+ export const magentoStockStatus = {
2224
+ InStock: 'IN_STOCK',
2225
+ OutOfStock: 'OUT_OF_STOCK',
2226
+ PartiallyAllocable: 'PARTIALLY_ALLOCABLE',
2227
+ };
2228
+ export const manifestDataSource = {
2229
+ Cardit: 'CARDIT',
2230
+ Precon: 'PRECON',
2231
+ Predes: 'PREDES',
2232
+ Resdit: 'RESDIT',
2233
+ };
2234
+ export const manifestLineEndUse = {
2235
+ Documents: 'DOCUMENTS',
2236
+ ForResale: 'FOR_RESALE',
2237
+ Gift: 'GIFT',
2238
+ NotForResale: 'NOT_FOR_RESALE',
2239
+ Return: 'RETURN',
2240
+ };
2241
+ export const manifestSource = {
2242
+ Api: 'API',
2243
+ Ipc: 'IPC',
2244
+ Other: 'OTHER',
2245
+ Post: 'POST',
2246
+ Upu: 'UPU',
2247
+ Usps: 'USPS',
2248
+ };
2112
2249
  export const manualClassificationBulkJobStatus = {
2113
2250
  Cancelled: 'CANCELLED',
2114
2251
  Completed: 'COMPLETED',
@@ -2145,6 +2282,10 @@ export const manualClassificationStatus = {
2145
2282
  Active: 'ACTIVE',
2146
2283
  Archived: 'ARCHIVED',
2147
2284
  };
2285
+ export const marketProfileContext = {
2286
+ Disabled: 'DISABLED',
2287
+ Enabled: 'ENABLED',
2288
+ };
2148
2289
  export const matchType = {
2149
2290
  ExactMatch: 'EXACT_MATCH',
2150
2291
  NoMatch: 'NO_MATCH',
@@ -2169,6 +2310,7 @@ export const notificationActiveStatus = {
2169
2310
  export const onboardSubscriptionType = {
2170
2311
  DashboardLite: 'DASHBOARD_LITE',
2171
2312
  FreeTrial: 'FREE_TRIAL',
2313
+ PostalOperator: 'POSTAL_OPERATOR',
2172
2314
  };
2173
2315
  export const orderBillingAdjustmentFeeType = {
2174
2316
  AdditionalTariffLines: 'ADDITIONAL_TARIFF_LINES',
@@ -2222,6 +2364,11 @@ export const orderNoteType = {
2222
2364
  Shipment: 'SHIPMENT',
2223
2365
  Status: 'STATUS',
2224
2366
  };
2367
+ export const orderPaymentAuthorizationExpirationBehavior = {
2368
+ Capture: 'CAPTURE',
2369
+ Ignore: 'IGNORE',
2370
+ Void: 'VOID',
2371
+ };
2225
2372
  export const orderPaymentStatus = {
2226
2373
  Paid: 'PAID',
2227
2374
  PartiallyRefunded: 'PARTIALLY_REFUNDED',
@@ -2251,15 +2398,37 @@ export const orderTransactionBillingMethod = {
2251
2398
  };
2252
2399
  export const orderType = {
2253
2400
  Api: 'API',
2401
+ CarrierPay: 'CARRIER_PAY',
2254
2402
  Checkout: 'CHECKOUT',
2255
2403
  Collect: 'COLLECT',
2404
+ Draft: 'DRAFT',
2405
+ Invoice: 'INVOICE',
2406
+ InvoiceCollect: 'INVOICE_COLLECT',
2407
+ LabelCollect: 'LABEL_COLLECT',
2408
+ PrepayCollect: 'PREPAY_COLLECT',
2409
+ PrepayInvoice: 'PREPAY_INVOICE',
2256
2410
  };
2257
2411
  export const organizationBusinessUnit = {
2258
2412
  Ecommerce: 'ECOMMERCE',
2259
2413
  SupplyChain: 'SUPPLY_CHAIN',
2260
2414
  };
2415
+ export const organizationFeePricingExclusion = {
2416
+ Document: 'DOCUMENT',
2417
+ QualifiedGift: 'QUALIFIED_GIFT',
2418
+ Return: 'RETURN',
2419
+ ZeroDuty: 'ZERO_DUTY',
2420
+ ZeroFee: 'ZERO_FEE',
2421
+ };
2422
+ export const organizationFeePricingQualifierType = {
2423
+ Organization: 'ORGANIZATION',
2424
+ ParentOrganization: 'PARENT_ORGANIZATION',
2425
+ ParentRevShare: 'PARENT_REV_SHARE',
2426
+ PrepayCollect: 'PREPAY_COLLECT',
2427
+ PrepayCollectPhotoDiscount: 'PREPAY_COLLECT_PHOTO_DISCOUNT',
2428
+ };
2261
2429
  export const organizationStatus = {
2262
2430
  Active: 'ACTIVE',
2431
+ Archived: 'ARCHIVED',
2263
2432
  Churned: 'CHURNED',
2264
2433
  Deleted: 'DELETED',
2265
2434
  Lead: 'LEAD',
@@ -2280,6 +2449,7 @@ export const organizationType = {
2280
2449
  Other: 'OTHER',
2281
2450
  Partner: 'PARTNER',
2282
2451
  Platform: 'PLATFORM',
2452
+ PlatformVendor: 'PLATFORM_VENDOR',
2283
2453
  PostalOperator: 'POSTAL_OPERATOR',
2284
2454
  PostalOperatorMerchant: 'POSTAL_OPERATOR_MERCHANT',
2285
2455
  };
@@ -2338,7 +2508,6 @@ export const partyType = {
2338
2508
  Payor: 'PAYOR',
2339
2509
  };
2340
2510
  export const paymentProcessorCode = {
2341
- NotApplicable: 'NOT_APPLICABLE',
2342
2511
  Paypal: 'PAYPAL',
2343
2512
  Stripe: 'STRIPE',
2344
2513
  StripeTransfer: 'STRIPE_TRANSFER',
@@ -2850,6 +3019,7 @@ export const postalOperatorCode = {
2850
3019
  Jj00C038: 'JJ00C038',
2851
3020
  Jj00C039: 'JJ00C039',
2852
3021
  Jj00Cz53: 'JJ00CZ53',
3022
+ Other: 'OTHER',
2853
3023
  };
2854
3024
  export const priceAdjustmentType = {
2855
3025
  Fixed: 'FIXED',
@@ -2883,6 +3053,21 @@ export const providedHsCodeVisibilityStatus = {
2883
3053
  NotVisible: 'NOT_VISIBLE',
2884
3054
  Visible: 'VISIBLE',
2885
3055
  };
3056
+ export const reportExportJobNotificationBehavior = {
3057
+ EmailOnCompletion: 'EMAIL_ON_COMPLETION',
3058
+ None: 'NONE',
3059
+ };
3060
+ export const reportExportJobStatus = {
3061
+ Completed: 'COMPLETED',
3062
+ Error: 'ERROR',
3063
+ Initialized: 'INITIALIZED',
3064
+ Processing: 'PROCESSING',
3065
+ };
3066
+ export const reportExportJobType = {
3067
+ InvoiceDetails: 'INVOICE_DETAILS',
3068
+ InvoiceSummary: 'INVOICE_SUMMARY',
3069
+ RemittanceNotInvoiced: 'REMITTANCE_NOT_INVOICED',
3070
+ };
2886
3071
  export const restrictedItemAction = {
2887
3072
  Block: 'BLOCK',
2888
3073
  BlockAll: 'BLOCK_ALL',
@@ -2914,6 +3099,19 @@ export const roundingMethod = {
2914
3099
  Thousandth: 'THOUSANDTH',
2915
3100
  Whole: 'WHOLE',
2916
3101
  };
3102
+ export const scope = {
3103
+ Default: 'DEFAULT',
3104
+ Stores: 'STORES',
3105
+ Websites: 'WEBSITES',
3106
+ };
3107
+ export const searchAmountDetailTarget = {
3108
+ BillingCompany: 'BILLING_COMPANY',
3109
+ MerchantBase: 'MERCHANT_BASE',
3110
+ MerchantProvided: 'MERCHANT_PROVIDED',
3111
+ MerchantSettled: 'MERCHANT_SETTLED',
3112
+ ShopperPresented: 'SHOPPER_PRESENTED',
3113
+ ZonosBase: 'ZONOS_BASE',
3114
+ };
2917
3115
  export const searchIndex = {
2918
3116
  Catalog: 'CATALOG',
2919
3117
  CatalogRecent: 'CATALOG_RECENT',
@@ -2946,6 +3144,16 @@ export const serviceLevelCountryDeliveryDuty = {
2946
3144
  Ddu: 'DDU',
2947
3145
  None: 'NONE',
2948
3146
  };
3147
+ export const settingsCopyType = {
3148
+ CarrierAccount: 'CARRIER_ACCOUNT',
3149
+ LandedCostBillingRule: 'LANDED_COST_BILLING_RULE',
3150
+ LandedCostGuarantee: 'LANDED_COST_GUARANTEE',
3151
+ LandedCostSettings: 'LANDED_COST_SETTINGS',
3152
+ Rule: 'RULE',
3153
+ ShippingProfile: 'SHIPPING_PROFILE',
3154
+ ShippingZone: 'SHIPPING_ZONE',
3155
+ StoreFeeRule: 'STORE_FEE_RULE',
3156
+ };
2949
3157
  export const shipmentAmountType = {
2950
3158
  Buffer: 'BUFFER',
2951
3159
  Discount: 'DISCOUNT',
@@ -3132,6 +3340,9 @@ export const storeFeeRuleDetailCategoryIdCreateType = {
3132
3340
  DdpServiceFee: 'DDP_SERVICE_FEE',
3133
3341
  DutyBuffer: 'DUTY_BUFFER',
3134
3342
  DutyTaxBuffer: 'DUTY_TAX_BUFFER',
3343
+ EtsyGuaranteeOrder: 'ETSY_GUARANTEE_ORDER',
3344
+ EtsyGuaranteePercent: 'ETSY_GUARANTEE_PERCENT',
3345
+ EtsyMerchantFeePercent: 'ETSY_MERCHANT_FEE_PERCENT',
3135
3346
  LandedCostGuaranteeBuffer: 'LANDED_COST_GUARANTEE_BUFFER',
3136
3347
  LandedCostGuaranteeSubsidy: 'LANDED_COST_GUARANTEE_SUBSIDY',
3137
3348
  MagentoCrossDockingBuffer: 'MAGENTO_CROSS_DOCKING_BUFFER',
@@ -3169,6 +3380,11 @@ export const stripeBillingFrequency = {
3169
3380
  Week: 'WEEK',
3170
3381
  Year: 'YEAR',
3171
3382
  };
3383
+ export const stripeCaptureMethod = {
3384
+ Automatic: 'AUTOMATIC',
3385
+ AutomaticAsync: 'AUTOMATIC_ASYNC',
3386
+ Manual: 'MANUAL',
3387
+ };
3172
3388
  export const stripeChargeStatus = {
3173
3389
  Failed: 'FAILED',
3174
3390
  Pending: 'PENDING',
@@ -3509,6 +3725,24 @@ export const zonosAttribution = {
3509
3725
  Disabled: 'DISABLED',
3510
3726
  Enabled: 'ENABLED',
3511
3727
  };
3728
+ export const zonosInvoiceCollectionMethod = {
3729
+ ChargeAutomatically: 'CHARGE_AUTOMATICALLY',
3730
+ CheckoutCollect: 'CHECKOUT_COLLECT',
3731
+ CreateOutstanding: 'CREATE_OUTSTANDING',
3732
+ SendInvoice: 'SEND_INVOICE',
3733
+ StripeBillingDraftInvoice: 'STRIPE_BILLING_DRAFT_INVOICE',
3734
+ StripeBillingInvoice: 'STRIPE_BILLING_INVOICE',
3735
+ };
3736
+ export const zonosInvoiceJobStatus = {
3737
+ Completed: 'COMPLETED',
3738
+ Failed: 'FAILED',
3739
+ GenerateNew: 'GENERATE_NEW',
3740
+ Initialized: 'INITIALIZED',
3741
+ LandedCost: 'LANDED_COST',
3742
+ SendEmail: 'SEND_EMAIL',
3743
+ UpdateInvoices: 'UPDATE_INVOICES',
3744
+ VoidUnpaid: 'VOID_UNPAID',
3745
+ };
3512
3746
  const defaultWrapper = (action, _operationName, _operationType) => action();
3513
3747
  export function getSdk(client, withWrapper = defaultWrapper) {
3514
3748
  return {
package/dist/esm/index.js CHANGED
@@ -130,7 +130,7 @@ const getZonosQaUrl = () => {
130
130
  return null;
131
131
  }
132
132
  const qaUrl = extractZonosQaUrl(window.location.href);
133
- const cdnUrl = "https://v1.3.234.js.zonos.com";
133
+ const cdnUrl = "https://v1.3.235.js.zonos.com";
134
134
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
135
135
  if (!qaUrl &&
136
136
  (cdnUrl.includes('test.') ||
@@ -378,10 +378,10 @@ const zonosLoadUrl = (() => {
378
378
  return null;
379
379
  })();
380
380
  const startLoadTime = Date.now();
381
- const ZONOS_URL = "https://v1.3.234.js.zonos.com";
382
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.234";
383
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.234";
384
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.234";
381
+ const ZONOS_URL = "https://v1.3.235.js.zonos.com";
382
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.235";
383
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.235";
384
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.235";
385
385
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
386
386
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
387
387
  class Zonos {
@@ -399,7 +399,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
399
399
  ? new URLSearchParams(window.location.search).get('iframeLogType')
400
400
  : null;
401
401
  Zonos.isBigCommerce = false;
402
- Zonos.releaseDate = "1756353722333";
402
+ Zonos.releaseDate = "1759772542349";
403
403
  Zonos.isLegacyCheckout = false;
404
404
  Zonos.startLoadTime = startLoadTime;
405
405
  Zonos.domain = typeof window !== 'undefined'
@@ -420,7 +420,7 @@ Zonos.isNpm = true;
420
420
  Zonos.zonosQaUrl = null;
421
421
  Zonos.zonosQaUrlApi = null;
422
422
  Zonos.trackEventLogs = [];
423
- Zonos.version = `v${"1.3.234"}`;
423
+ Zonos.version = `v${"1.3.235"}`;
424
424
  Zonos.modeAlerted = false;
425
425
  Zonos.cartData = null;
426
426
  Zonos.paypal = null;
@@ -237,7 +237,9 @@ const ZonosInvoice = class {
237
237
  // Some merchants use landed cost id as the confirmation id
238
238
  this.confirmationId = ((_h = json === null || json === void 0 ? void 0 : json.checkoutSession.landedCost) === null || _h === void 0 ? void 0 : _h.shortId) || null;
239
239
  // If checkout session is already completed, set to finish step
240
- if (!!(json === null || json === void 0 ? void 0 : json.checkoutSession.completedAt)) {
240
+ if (!!(json === null || json === void 0 ? void 0 : json.checkoutSession.completedAt) &&
241
+ // For invoice that's set to expired, we set completedAt but no order attached. In that case should not set to finish step
242
+ !!json.checkoutSession.order) {
241
243
  void this.setToFinishStep('succeeded');
242
244
  return;
243
245
  }