@blockchyp/blockchyp-ts 2.30.6 → 2.30.7

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.
@@ -35181,7 +35181,7 @@ exports.Address = Address;
35181
35181
  */
35182
35182
  class MerchantProfile {
35183
35183
  // Constructor with default values for optional fields
35184
- constructor(timeout = null, test = null, merchantId = null, bankMid = null, companyName = null, dbaName = null, invoiceName = null, contactName = null, contactNumber = null, locationName = null, storeNumber = null, partnerRef = null, timeZone = null, batchCloseTime = null, terminalUpdateTime = null, autoBatchClose = null, disableBatchEmails = null, pinEnabled = null, cashBackEnabled = null, storeAndForwardEnabled = null, partialAuthEnabled = null, splitBankAccountsEnabled = null, storeAndForwardFloorLimit = null, publicKey = null, status = null, cashDiscountEnabled = null, surveyTimeout = null, cooldownTimeout = null, tipEnabled = null, promptForTip = null, tipDefaults = null, cashbackPresets = null, ebtEnabled = null, freeRangeRefundsEnabled = null, pinBypassEnabled = null, giftCardsDisabled = null, tcDisabled = null, digitalSignaturesEnabled = null, digitalSignatureReversal = null, billingAddress = null, shippingAddress = null, visa = null, masterCard = null, amex = null, discover = null, jcb = null, unionPay = null, contactlessEmv = null, manualEntryEnabled = null, manualEntryPromptZip = null, manualEntryPromptStreetNumber = null, gatewayOnly = null, bankAccounts = null, passthroughSurchargeEnabled = null, cvvVerificationEnabled = null, cvvVerificationNEnabled = null, cvvVerificationPEnabled = null, cvvVerificationSEnabled = null, cvvVerificationUEnabled = null, followPartnerCvvSettings = null, avsRule = null, followPartnerAvsSettings = null, accountUpdaterEnrolled = null, bypassEnrollAuthEnabled = null, followPartnerServiceFeeEnabled = null, serviceFeeEnabled = null) {
35184
+ constructor(timeout = null, test = null, merchantId = null, bankMid = null, companyName = null, dbaName = null, invoiceName = null, contactName = null, contactNumber = null, locationName = null, storeNumber = null, partnerRef = null, timeZone = null, batchCloseTime = null, terminalUpdateTime = null, autoBatchClose = null, disableBatchEmails = null, pinEnabled = null, cashBackEnabled = null, storeAndForwardEnabled = null, partialAuthEnabled = null, splitBankAccountsEnabled = null, storeAndForwardFloorLimit = null, publicKey = null, status = null, cashDiscountEnabled = null, surveyTimeout = null, cooldownTimeout = null, tipEnabled = null, promptForTip = null, tipDefaults = null, cashbackPresets = null, ebtEnabled = null, freeRangeRefundsEnabled = null, pinBypassEnabled = null, giftCardsDisabled = null, tcDisabled = null, digitalSignaturesEnabled = null, digitalSignatureReversal = null, billingAddress = null, shippingAddress = null, visa = null, masterCard = null, amex = null, discover = null, jcb = null, unionPay = null, contactlessEmv = null, manualEntryEnabled = null, manualEntryPromptZip = null, manualEntryPromptStreetNumber = null, gatewayOnly = null, bankAccounts = null, passthroughSurchargeEnabled = null, cvvVerificationEnabled = null, cvvVerificationNEnabled = null, cvvVerificationPEnabled = null, cvvVerificationSEnabled = null, cvvVerificationUEnabled = null, followPartnerCvvSettings = null, avsRule = null, followPartnerAvsSettings = null, accountUpdaterEnrolled = null, bypassEnrollAuthEnabled = null, followPartnerServiceFeeEnabled = null, serviceFeeEnabled = null, followPartnerCvvCacheEnabled = null, cvvCacheEnabled = null) {
35185
35185
  /**
35186
35186
  * The request timeout in seconds.
35187
35187
  */
@@ -35455,6 +35455,14 @@ class MerchantProfile {
35455
35455
  * That the merchant is configured to apply a service fee.
35456
35456
  */
35457
35457
  this.serviceFeeEnabled = null;
35458
+ /**
35459
+ * That the merchant follows the partner's CVV cache settings.
35460
+ */
35461
+ this.followPartnerCvvCacheEnabled = null;
35462
+ /**
35463
+ * That the merchant is configured to apply a CVV cache.
35464
+ */
35465
+ this.cvvCacheEnabled = null;
35458
35466
  this.timeout = timeout;
35459
35467
  this.test = test;
35460
35468
  this.merchantId = merchantId;
@@ -35521,6 +35529,8 @@ class MerchantProfile {
35521
35529
  this.bypassEnrollAuthEnabled = bypassEnrollAuthEnabled;
35522
35530
  this.followPartnerServiceFeeEnabled = followPartnerServiceFeeEnabled;
35523
35531
  this.serviceFeeEnabled = serviceFeeEnabled;
35532
+ this.followPartnerCvvCacheEnabled = followPartnerCvvCacheEnabled;
35533
+ this.cvvCacheEnabled = cvvCacheEnabled;
35524
35534
  }
35525
35535
  }
35526
35536
  exports.MerchantProfile = MerchantProfile;
@@ -35529,7 +35539,7 @@ exports.MerchantProfile = MerchantProfile;
35529
35539
  */
35530
35540
  class MerchantProfileResponse {
35531
35541
  // Constructor with default values for optional fields
35532
- constructor(success = null, error = null, responseDescription = null, test = null, merchantId = null, bankMid = null, companyName = null, dbaName = null, invoiceName = null, contactName = null, contactNumber = null, locationName = null, storeNumber = null, partnerRef = null, timeZone = null, batchCloseTime = null, terminalUpdateTime = null, autoBatchClose = null, disableBatchEmails = null, pinEnabled = null, cashBackEnabled = null, storeAndForwardEnabled = null, partialAuthEnabled = null, splitBankAccountsEnabled = null, storeAndForwardFloorLimit = null, publicKey = null, status = null, cashDiscountEnabled = null, surveyTimeout = null, cooldownTimeout = null, tipEnabled = null, promptForTip = null, tipDefaults = null, cashbackPresets = null, ebtEnabled = null, freeRangeRefundsEnabled = null, pinBypassEnabled = null, giftCardsDisabled = null, tcDisabled = null, digitalSignaturesEnabled = null, digitalSignatureReversal = null, billingAddress = null, shippingAddress = null, visa = null, masterCard = null, amex = null, discover = null, jcb = null, unionPay = null, contactlessEmv = null, manualEntryEnabled = null, manualEntryPromptZip = null, manualEntryPromptStreetNumber = null, gatewayOnly = null, bankAccounts = null, passthroughSurchargeEnabled = null, cvvVerificationEnabled = null, cvvVerificationNEnabled = null, cvvVerificationPEnabled = null, cvvVerificationSEnabled = null, cvvVerificationUEnabled = null, followPartnerCvvSettings = null, avsRule = null, followPartnerAvsSettings = null, accountUpdaterEnrolled = null, bypassEnrollAuthEnabled = null, followPartnerServiceFeeEnabled = null, serviceFeeEnabled = null) {
35542
+ constructor(success = null, error = null, responseDescription = null, test = null, merchantId = null, bankMid = null, companyName = null, dbaName = null, invoiceName = null, contactName = null, contactNumber = null, locationName = null, storeNumber = null, partnerRef = null, timeZone = null, batchCloseTime = null, terminalUpdateTime = null, autoBatchClose = null, disableBatchEmails = null, pinEnabled = null, cashBackEnabled = null, storeAndForwardEnabled = null, partialAuthEnabled = null, splitBankAccountsEnabled = null, storeAndForwardFloorLimit = null, publicKey = null, status = null, cashDiscountEnabled = null, surveyTimeout = null, cooldownTimeout = null, tipEnabled = null, promptForTip = null, tipDefaults = null, cashbackPresets = null, ebtEnabled = null, freeRangeRefundsEnabled = null, pinBypassEnabled = null, giftCardsDisabled = null, tcDisabled = null, digitalSignaturesEnabled = null, digitalSignatureReversal = null, billingAddress = null, shippingAddress = null, visa = null, masterCard = null, amex = null, discover = null, jcb = null, unionPay = null, contactlessEmv = null, manualEntryEnabled = null, manualEntryPromptZip = null, manualEntryPromptStreetNumber = null, gatewayOnly = null, bankAccounts = null, passthroughSurchargeEnabled = null, cvvVerificationEnabled = null, cvvVerificationNEnabled = null, cvvVerificationPEnabled = null, cvvVerificationSEnabled = null, cvvVerificationUEnabled = null, followPartnerCvvSettings = null, avsRule = null, followPartnerAvsSettings = null, accountUpdaterEnrolled = null, bypassEnrollAuthEnabled = null, followPartnerServiceFeeEnabled = null, serviceFeeEnabled = null, followPartnerCvvCacheEnabled = null, cvvCacheEnabled = null) {
35533
35543
  /**
35534
35544
  * Whether or not the request succeeded.
35535
35545
  */
@@ -35811,6 +35821,14 @@ class MerchantProfileResponse {
35811
35821
  * That the merchant is configured to apply a service fee.
35812
35822
  */
35813
35823
  this.serviceFeeEnabled = null;
35824
+ /**
35825
+ * That the merchant follows the partner's CVV cache settings.
35826
+ */
35827
+ this.followPartnerCvvCacheEnabled = null;
35828
+ /**
35829
+ * That the merchant is configured to apply a CVV cache.
35830
+ */
35831
+ this.cvvCacheEnabled = null;
35814
35832
  this.success = success;
35815
35833
  this.error = error;
35816
35834
  this.responseDescription = responseDescription;
@@ -35879,6 +35897,8 @@ class MerchantProfileResponse {
35879
35897
  this.bypassEnrollAuthEnabled = bypassEnrollAuthEnabled;
35880
35898
  this.followPartnerServiceFeeEnabled = followPartnerServiceFeeEnabled;
35881
35899
  this.serviceFeeEnabled = serviceFeeEnabled;
35900
+ this.followPartnerCvvCacheEnabled = followPartnerCvvCacheEnabled;
35901
+ this.cvvCacheEnabled = cvvCacheEnabled;
35882
35902
  }
35883
35903
  }
35884
35904
  exports.MerchantProfileResponse = MerchantProfileResponse;
@@ -41329,7 +41349,7 @@ exports.CoreResponse = CoreResponse;
41329
41349
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
41330
41350
 
41331
41351
  "use strict";
41332
- /*! Axios v1.18.0 Copyright (c) 2026 Matt Zabriskie and contributors */
41352
+ /*! Axios v1.18.1 Copyright (c) 2026 Matt Zabriskie and contributors */
41333
41353
 
41334
41354
 
41335
41355
  /**
@@ -42898,7 +42918,19 @@ function redactConfig(config, redactKeys) {
42898
42918
  class AxiosError extends Error {
42899
42919
  static from(error, code, config, request, response, customProps) {
42900
42920
  const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
42901
- axiosError.cause = error;
42921
+ // Match native `Error` `cause` semantics: non-enumerable. The wrapped
42922
+ // error often carries circular internals (sockets, requests, agents), so
42923
+ // an enumerable `cause` makes structured loggers (pino/winston) and any
42924
+ // own-property walk throw "Converting circular structure to JSON".
42925
+ // Regression from #6982; see #7205. `__proto__: null` mirrors the
42926
+ // `message` descriptor below (prototype-pollution-safe descriptor).
42927
+ Object.defineProperty(axiosError, 'cause', {
42928
+ __proto__: null,
42929
+ value: error,
42930
+ writable: true,
42931
+ enumerable: false,
42932
+ configurable: true,
42933
+ });
42902
42934
  axiosError.name = error.name;
42903
42935
 
42904
42936
  // Preserve status from the original error if not already set from response
@@ -43137,7 +43169,13 @@ function toFormData(obj, formData, options) {
43137
43169
  }
43138
43170
 
43139
43171
  if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
43140
- return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
43172
+ if (useBlob && typeof _Blob === 'function') {
43173
+ return new _Blob([value]);
43174
+ }
43175
+ if (typeof Buffer !== 'undefined') {
43176
+ return Buffer.from(value);
43177
+ }
43178
+ throw new AxiosError('Blob is not supported. Use a Buffer instead.', AxiosError.ERR_NOT_SUPPORT);
43141
43179
  }
43142
43180
 
43143
43181
  return value;
@@ -43314,9 +43352,7 @@ prototype.append = function append(name, value) {
43314
43352
 
43315
43353
  prototype.toString = function toString(encoder) {
43316
43354
  const _encode = encoder
43317
- ? function (value) {
43318
- return encoder.call(this, value, encode$1);
43319
- }
43355
+ ? (value) => encoder.call(this, value, encode$1)
43320
43356
  : encode$1;
43321
43357
 
43322
43358
  return this._pairs
@@ -43355,6 +43391,7 @@ function buildURL(url, params, options) {
43355
43391
  if (!params) {
43356
43392
  return url;
43357
43393
  }
43394
+ url = url || '';
43358
43395
 
43359
43396
  const _options = utils$1.isFunction(options)
43360
43397
  ? {
@@ -44106,7 +44143,11 @@ var cookies = platform.hasStandardBrowserEnv
44106
44143
  const cookie = cookies[i].replace(/^\s+/, '');
44107
44144
  const eq = cookie.indexOf('=');
44108
44145
  if (eq !== -1 && cookie.slice(0, eq) === name) {
44109
- return decodeURIComponent(cookie.slice(eq + 1));
44146
+ try {
44147
+ return decodeURIComponent(cookie.slice(eq + 1));
44148
+ } catch (e) {
44149
+ return cookie.slice(eq + 1);
44150
+ }
44110
44151
  }
44111
44152
  }
44112
44153
  return null;
@@ -44215,6 +44256,7 @@ const headersToObject = (thing) => (thing instanceof AxiosHeaders ? { ...thing }
44215
44256
  */
44216
44257
  function mergeConfig(config1, config2) {
44217
44258
  // eslint-disable-next-line no-param-reassign
44259
+ config1 = config1 || {};
44218
44260
  config2 = config2 || {};
44219
44261
 
44220
44262
  // Use a null-prototype object so that downstream reads such as `config.auth`
@@ -44364,7 +44406,7 @@ function setFormDataHeaders(headers, formHeaders, policy) {
44364
44406
  return;
44365
44407
  }
44366
44408
 
44367
- Object.entries(formHeaders).forEach(([key, val]) => {
44409
+ Object.entries(formHeaders || {}).forEach(([key, val]) => {
44368
44410
  if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
44369
44411
  headers.set(key, val);
44370
44412
  }
@@ -44414,10 +44456,14 @@ function resolveConfig(config) {
44414
44456
  const username = utils$1.getSafeProp(auth, 'username') || '';
44415
44457
  const password = utils$1.getSafeProp(auth, 'password') || '';
44416
44458
 
44417
- headers.set(
44418
- 'Authorization',
44419
- 'Basic ' + btoa(username + ':' + (password ? encodeUTF8$1(password) : ''))
44420
- );
44459
+ try {
44460
+ headers.set(
44461
+ 'Authorization',
44462
+ 'Basic ' + btoa(username + ':' + (password ? encodeUTF8$1(password) : ''))
44463
+ );
44464
+ } catch (e) {
44465
+ throw AxiosError.from(e, AxiosError.ERR_BAD_OPTION_VALUE, config);
44466
+ }
44421
44467
  }
44422
44468
 
44423
44469
  if (utils$1.isFormData(data)) {
@@ -44668,6 +44714,7 @@ var xhrAdapter = isXHRAdapterSupported &&
44668
44714
  config
44669
44715
  )
44670
44716
  );
44717
+ done();
44671
44718
  return;
44672
44719
  }
44673
44720
 
@@ -44719,7 +44766,7 @@ const composeSignals = (signals, timeout) => {
44719
44766
  signals = null;
44720
44767
  };
44721
44768
 
44722
- signals.forEach((signal) => signal.addEventListener('abort', onabort));
44769
+ signals.forEach((signal) => signal.addEventListener('abort', onabort, { once: true }));
44723
44770
 
44724
44771
  const { signal } = controller;
44725
44772
 
@@ -44924,7 +44971,7 @@ function estimateDataURLDecodedBytes(url) {
44924
44971
  return bytes;
44925
44972
  }
44926
44973
 
44927
- const VERSION = "1.18.0";
44974
+ const VERSION = "1.18.1";
44928
44975
 
44929
44976
  const DEFAULT_CHUNK_SIZE = 64 * 1024;
44930
44977
 
@@ -45468,7 +45515,17 @@ const factory = (env) => {
45468
45515
  const canceledError = composedSignal.reason;
45469
45516
  canceledError.config = config;
45470
45517
  request && (canceledError.request = request);
45471
- err !== canceledError && (canceledError.cause = err);
45518
+ if (err !== canceledError) {
45519
+ // Non-enumerable to match native Error `cause` semantics so loggers
45520
+ // don't recurse into circular fetch internals (see #7205).
45521
+ Object.defineProperty(canceledError, 'cause', {
45522
+ __proto__: null,
45523
+ value: err,
45524
+ writable: true,
45525
+ enumerable: false,
45526
+ configurable: true,
45527
+ });
45528
+ }
45472
45529
  throw canceledError;
45473
45530
  }
45474
45531
 
@@ -45490,18 +45547,23 @@ const factory = (env) => {
45490
45547
  }
45491
45548
 
45492
45549
  if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
45493
- throw Object.assign(
45494
- new AxiosError(
45495
- 'Network Error',
45496
- AxiosError.ERR_NETWORK,
45497
- config,
45498
- request,
45499
- err && err.response
45500
- ),
45501
- {
45502
- cause: err.cause || err,
45503
- }
45550
+ const networkError = new AxiosError(
45551
+ 'Network Error',
45552
+ AxiosError.ERR_NETWORK,
45553
+ config,
45554
+ request,
45555
+ err && err.response
45504
45556
  );
45557
+ // Non-enumerable to match native Error `cause` semantics so loggers
45558
+ // don't recurse into circular fetch internals (see #7205).
45559
+ Object.defineProperty(networkError, 'cause', {
45560
+ __proto__: null,
45561
+ value: err.cause || err,
45562
+ writable: true,
45563
+ enumerable: false,
45564
+ configurable: true,
45565
+ });
45566
+ throw networkError;
45505
45567
  }
45506
45568
 
45507
45569
  throw AxiosError.from(err, err && err.code, config, request, err && err.response);
@@ -45639,7 +45701,7 @@ function getAdapter(adapters, config) {
45639
45701
 
45640
45702
  throw new AxiosError(
45641
45703
  `There is no suitable adapter to dispatch the request ` + s,
45642
- 'ERR_NOT_SUPPORT'
45704
+ AxiosError.ERR_NOT_SUPPORT
45643
45705
  );
45644
45706
  }
45645
45707
 
@@ -45820,7 +45882,7 @@ validators$1.spelling = function spelling(correctSpelling) {
45820
45882
  */
45821
45883
 
45822
45884
  function assertOptions(options, schema, allowUnknown) {
45823
- if (typeof options !== 'object') {
45885
+ if (typeof options !== 'object' || options === null) {
45824
45886
  throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
45825
45887
  }
45826
45888
  const keys = Object.keys(options);