@getopenpay/openpay-js 0.5.0-alpha.62d9c95 → 0.5.2

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.
@@ -1,7 +1,7 @@
1
- import { R as u } from "./index-Ca030TDy.js";
2
- import { B as c } from "./SimpleSpanProcessor-CUoy0lbi.js";
3
- import { A as g, b as x, a as S, C as b, F as w, I as P, N as C, P as T, R as O, d as M, S as A, e as E, c as R, T as N } from "./SimpleSpanProcessor-CUoy0lbi.js";
4
- import { P as F, a as j, b as k, g as I, c as W, h as U, n as X, p as z, s as D, d as G } from "./utils-BIbbsEZ_.js";
1
+ import { R as u } from "./index-BVbeGNGK.js";
2
+ import { B as c } from "./SimpleSpanProcessor-chuJXVe5.js";
3
+ import { A as g, b as x, a as S, C as b, F as w, I as P, N as C, P as T, R as O, d as M, S as A, e as E, c as R, T as N } from "./SimpleSpanProcessor-chuJXVe5.js";
4
+ import { P as F, a as j, b as k, g as I, c as W, h as U, n as X, p as z, s as D, d as G } from "./utils-Cog5OvOK.js";
5
5
  var l = function(n, r) {
6
6
  var e = typeof Symbol == "function" && n[Symbol.iterator];
7
7
  if (!e) return n;
@@ -1,7 +1,7 @@
1
- import { R as l } from "./Resource-DdbPJLpu.js";
2
- import { d as ee } from "./Resource-DdbPJLpu.js";
3
- import { d as v } from "./diag-api-DPGn2Sdx.js";
4
- import { e as A, f as m, g as b, h as w, S as D } from "./sdk-info-DKlCcJvg.js";
1
+ import { R as l } from "./Resource-BCwzhHdr.js";
2
+ import { d as ee } from "./Resource-BCwzhHdr.js";
3
+ import { d as v } from "./diag-api-DVWdaM_5.js";
4
+ import { e as A, f as m, g as b, h as w, S as D } from "./sdk-info-Yldl_Nh7.js";
5
5
  var T = (
6
6
  /** @class */
7
7
  function() {
@@ -1,9 +1,9 @@
1
- import { d as z } from "./diag-api-DPGn2Sdx.js";
2
- import { b as G, c as I, d as W, e as X, p as _, i as V, f as K, g as Q, j as C, k as $, m as J } from "./url-De9F-_C0.js";
3
- import { s as Y, i as Z, I as q } from "./utils-CT2-sflt.js";
1
+ import { d as z } from "./diag-api-DVWdaM_5.js";
2
+ import { b as G, c as I, d as W, e as X, p as _, i as V, f as K, g as Q, j as C, k as $, m as J } from "./url-c22wWJRm.js";
3
+ import { s as Y, i as Z, I as q } from "./utils-BlKzJ1p8.js";
4
4
  import { _ as T } from "./utils-BGeftTvk.js";
5
- import { P as O, b as P, p as N, s as ee, c as te } from "./utils-BIbbsEZ_.js";
6
- import { t as x, c as p, S as re } from "./index-Ca030TDy.js";
5
+ import { P as O, b as P, p as N, s as ee, c as te } from "./utils-Cog5OvOK.js";
6
+ import { t as x, c as p, S as re } from "./index-BVbeGNGK.js";
7
7
  var y;
8
8
  (function(a) {
9
9
  a.COMPONENT = "component", a.HTTP_ERROR_NAME = "http.error_name", a.HTTP_STATUS_TEXT = "http.status_text";
@@ -1,4 +1,4 @@
1
- import { A as r, b as e, B as o, a as p, C as n, F as S, I as c, N as l, P as m, R as t, d, S as i, e as P, c as B, T as I } from "./SimpleSpanProcessor-CUoy0lbi.js";
1
+ import { A as r, b as e, B as o, a as p, C as n, F as S, I as c, N as l, P as m, R as t, d, S as i, e as P, c as B, T as I } from "./SimpleSpanProcessor-chuJXVe5.js";
2
2
  export {
3
3
  r as AlwaysOffSampler,
4
4
  e as AlwaysOnSampler,
@@ -1,4 +1,4 @@
1
- import { b as I, t as l, i as D, T as o, d as T, e as b } from "./index-Ca030TDy.js";
1
+ import { b as I, t as l, i as D, T as o, d as T, e as b } from "./index-BVbeGNGK.js";
2
2
  var C = I("OpenTelemetry SDK Context Key SUPPRESS_TRACING");
3
3
  function A(r) {
4
4
  return r.getValue(C) === !0;
@@ -1,8 +1,8 @@
1
- import { z as de, p as T, r as _e, w as ye, j as ve, n as he, y as me, dJ as ge, h as Se, dK as Ae, l as Ee, q as Te, i as Pe, m as Re, o as Oe, t as be, u as Ce } from "./url-De9F-_C0.js";
2
- import { b as k, t as O, i as Y, T as b, d as Ie, c as B } from "./index-Ca030TDy.js";
3
- import { d as _ } from "./diag-api-DPGn2Sdx.js";
1
+ import { z as de, p as T, r as _e, w as ye, j as ve, n as he, y as me, dJ as ge, h as Se, dK as Ae, l as Ee, q as Te, i as Pe, m as Re, o as Oe, t as be, u as Ce } from "./url-c22wWJRm.js";
2
+ import { b as k, t as O, i as Y, T as b, d as Ie, c as B } from "./index-BVbeGNGK.js";
3
+ import { d as _ } from "./diag-api-DVWdaM_5.js";
4
4
  import { h as X, E as je } from "./ExportResult-Bo1QOwfo.js";
5
- import { D as Me, j as Ne, br as we, bs as De, bt as Le, b as xe, T as Ge, bu as Be, h as Ve, i as Ue, bv as He } from "./sdk-info-DKlCcJvg.js";
5
+ import { D as Me, j as Ne, br as we, bs as De, bt as Le, b as xe, T as Ge, bu as Be, h as Ve, i as Ue, bv as He } from "./sdk-info-Yldl_Nh7.js";
6
6
  import { _ as Ke } from "./utils-BGeftTvk.js";
7
7
  var p;
8
8
  (function(e) {
@@ -1,4 +1,4 @@
1
- import { R as Le } from "./index-Ca030TDy.js";
1
+ import { R as Le } from "./index-BVbeGNGK.js";
2
2
  function Et(e) {
3
3
  return e === void 0 && (e = {}), typeof e.addEventListener == "function" && typeof e.removeEventListener == "function";
4
4
  }
@@ -1,8 +1,8 @@
1
- import { m as s } from "./metrics-api-DlHxJhGO.js";
2
- import { t as d } from "./index-Ca030TDy.js";
3
- import { l as u } from "./utils-CT2-sflt.js";
4
- import { I as N, i as T, s as w, a as E } from "./utils-CT2-sflt.js";
5
- import { d as f } from "./diag-api-DPGn2Sdx.js";
1
+ import { m as s } from "./metrics-api-DvG8X_VW.js";
2
+ import { t as d } from "./index-BVbeGNGK.js";
3
+ import { l as u } from "./utils-BlKzJ1p8.js";
4
+ import { I as N, i as T, s as w, a as E } from "./utils-BlKzJ1p8.js";
5
+ import { d as f } from "./diag-api-DVWdaM_5.js";
6
6
  function l(e, r, t, o) {
7
7
  for (var n = 0, a = e.length; n < a; n++) {
8
8
  var i = e[n];
package/dist/index.d.ts CHANGED
@@ -5,16 +5,6 @@ import { PaymentRequest as PaymentRequest_2 } from '@stripe/stripe-js';
5
5
  import { Subject } from 'rxjs';
6
6
  import { z } from 'zod';
7
7
 
8
- declare type AirwallexApplePayFlowCustomParams = {
9
- overridePaymentRequest?: {
10
- amount: Amount;
11
- pending?: boolean;
12
- label?: string;
13
- applePayPaymentRequest?: ApplePayPaymentRequest;
14
- };
15
- defaultFieldValues?: DefaultFieldValues;
16
- };
17
-
18
8
  declare type AllCallbacks = {
19
9
  onFocus?: (elementId: string, field: AllFieldNames) => void;
20
10
  onBlur?: (
@@ -358,12 +348,6 @@ declare type GooglePayPaymentRequest =
358
348
  | ((current: PaymentDataRequest) => Partial<PaymentDataRequest>)
359
349
  | Partial<PaymentDataRequest>;
360
350
 
361
- declare type InitAirwallexApplePayFlowResult = {
362
- isAvailable: boolean;
363
- isLoading: boolean;
364
- startFlow: (customParams?: AirwallexApplePayFlowCustomParams) => Promise<void>;
365
- };
366
-
367
351
  declare type InitApplePayFlowResult = {
368
352
  processor: PaymentProcessor;
369
353
  isAvailable: boolean;
@@ -1181,8 +1165,8 @@ declare type ProcessorSpecificSubmitSettings<T extends SubmitMethod = SubmitMeth
1181
1165
  [SubmitMethods.paypal]: PaypalFlowCustomParams;
1182
1166
  // TODO: The following methods are deprecated and will be removed in the future.
1183
1167
  // Use googlePay/applePay instead
1184
- [SubmitMethods.airwallexGooglePay]: ApplePayFlowCustomParams;
1185
- [SubmitMethods.airwallexApplePay]: InitAirwallexApplePayFlowResult;
1168
+ [SubmitMethods.airwallexGooglePay]: GooglePayFlowCustomParams;
1169
+ [SubmitMethods.airwallexApplePay]: ApplePayFlowCustomParams;
1186
1170
  [SubmitMethods.authorizenetGooglePay]: GooglePayFlowCustomParams;
1187
1171
  [SubmitMethods.authorizenetApplePay]: ApplePayFlowCustomParams;
1188
1172
  [SubmitMethods.adyenGooglePay]: GooglePayFlowCustomParams;
@@ -1223,7 +1207,7 @@ export declare enum SubmitMethods {
1223
1207
  */
1224
1208
  airwallexGooglePay = 'airwallex-google-pay',
1225
1209
  /**
1226
- * @deprecated Use googlePay instead
1210
+ * @deprecated Use applePay instead
1227
1211
  */
1228
1212
  airwallexApplePay = 'airwallex-apple-pay',
1229
1213
  /**
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as e, O as i, l as p } from "./index-Ca030TDy.js";
1
+ import { F as e, O as i, l as p } from "./index-BVbeGNGK.js";
2
2
  import "penpal";
3
3
  import "zod";
4
4
  import "uuid";