@getopenpay/openpay-js 0.3.16 → 0.4.0-alpha.14b159a

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-BOr2ODAv.js";
2
- import { B as c } from "./SimpleSpanProcessor-BBJXYxlI.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-BBJXYxlI.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-Be5CzHHM.js";
1
+ import { R as u } from "./index-BfAfpgB8.js";
2
+ import { B as c } from "./SimpleSpanProcessor-DpwJyvgM.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-DpwJyvgM.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-DeORuq_A.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,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-BBJXYxlI.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-DpwJyvgM.js";
2
2
  export {
3
3
  r as AlwaysOffSampler,
4
4
  e as AlwaysOnSampler,
@@ -1,4 +1,4 @@
1
- import { R as Le } from "./index-BOr2ODAv.js";
1
+ import { R as Le } from "./index-BfAfpgB8.js";
2
2
  function Et(e) {
3
3
  return e === void 0 && (e = {}), typeof e.addEventListener == "function" && typeof e.removeEventListener == "function";
4
4
  }
@@ -1,9 +1,9 @@
1
- import { d as z } from "./diag-api-By3jTRb_.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-BMs887w_.js";
3
- import { s as Y, i as Z, I as q } from "./utils-DA22BULN.js";
1
+ import { d as z } from "./diag-api-BwxqXJnA.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-DumZjWsM.js";
3
+ import { s as Y, i as Z, I as q } from "./utils-D1PZVfIl.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-Be5CzHHM.js";
6
- import { t as x, c as p, S as re } from "./index-BOr2ODAv.js";
5
+ import { P as O, b as P, p as N, s as ee, c as te } from "./utils-DeORuq_A.js";
6
+ import { t as x, c as p, S as re } from "./index-BfAfpgB8.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,8 +1,8 @@
1
- import { m as s } from "./metrics-api-B4SfOHzx.js";
2
- import { t as d } from "./index-BOr2ODAv.js";
3
- import { l as u } from "./utils-DA22BULN.js";
4
- import { I as N, i as T, s as w, a as E } from "./utils-DA22BULN.js";
5
- import { d as f } from "./diag-api-By3jTRb_.js";
1
+ import { m as s } from "./metrics-api-CrXKnSD7.js";
2
+ import { t as d } from "./index-BfAfpgB8.js";
3
+ import { l as u } from "./utils-D1PZVfIl.js";
4
+ import { I as N, i as T, s as w, a as E } from "./utils-D1PZVfIl.js";
5
+ import { d as f } from "./diag-api-BwxqXJnA.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];
@@ -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-BOr2ODAv.js";
1
+ import { b as I, t as l, i as D, T as o, d as T, e as b } from "./index-BfAfpgB8.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,4 +1,4 @@
1
- import { d as diag } from "./diag-api-By3jTRb_.js";
1
+ import { d as diag } from "./diag-api-BwxqXJnA.js";
2
2
  import { E as ExportResultCode, h as hexToBinary } from "./ExportResult-Bo1QOwfo.js";
3
3
  import { c as commonjsGlobal } from "./_commonjsHelpers-DnMzE-71.js";
4
4
  var OTLPExporterBase = (
@@ -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-BMs887w_.js";
2
- import { b as k, t as O, i as Y, T as b, d as Ie, c as B } from "./index-BOr2ODAv.js";
3
- import { d as _ } from "./diag-api-By3jTRb_.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-DumZjWsM.js";
2
+ import { b as k, t as O, i as Y, T as b, d as Ie, c as B } from "./index-BfAfpgB8.js";
3
+ import { d as _ } from "./diag-api-BwxqXJnA.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-B6wE88rc.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-BAVzEiLK.js";
6
6
  import { _ as Ke } from "./utils-BGeftTvk.js";
7
7
  var p;
8
8
  (function(e) {
package/dist/index.d.ts CHANGED
@@ -166,7 +166,15 @@ declare type CustomInitParams = {
166
166
 
167
167
  declare type CustomStyles = string;
168
168
 
169
- declare type DefaultFieldValues = Partial<Record<FieldNameEnum, string>>;
169
+ declare type DefaultFieldValues = Partial<Record<FieldNameEnum, string>> & {
170
+ payment_method?: string | SubmitMethod;
171
+ show_all_prices?: boolean;
172
+ exclusive_prices?: boolean;
173
+ price_id_product_mapping?: Record<string, string>;
174
+ require_zip_code?: boolean;
175
+ require_full_billing_address?: boolean;
176
+ require_full_shipping_address?: boolean;
177
+ };
170
178
 
171
179
  declare type ElementProps<PlaceholderType extends z.ZodTypeAny = z.ZodString> = {
172
180
  styles?: ElementsStyle<z.ZodOptional<PlaceholderType>>;
@@ -240,13 +248,23 @@ declare type ErrorStatus = {
240
248
  export declare enum FieldName {
241
249
  FIRST_NAME = 'firstName',
242
250
  LAST_NAME = 'lastName',
251
+ PHONE = 'phone',
243
252
  EMAIL = 'email',
244
- ZIP_CODE = 'zipCode',
253
+ LINE1 = 'line1',
254
+ LINE2 = 'line2',
255
+ LINE3 = 'line3',
245
256
  CITY = 'city',
246
257
  STATE = 'state',
247
258
  COUNTRY = 'country',
248
- ADDRESS = 'address',
249
- PHONE = 'phone',
259
+ ZIP_CODE = 'zipCode',
260
+ SHIPPING_LINE1 = 'shippingAddressLine1',
261
+ SHIPPING_LINE2 = 'shippingAddressLine2',
262
+ SHIPPING_LINE3 = 'shippingAddressLine3',
263
+ SHIPPING_CITY = 'shippingAddressCity',
264
+ SHIPPING_STATE = 'shippingAddressState',
265
+ SHIPPING_COUNTRY = 'shippingAddressCountry',
266
+ SHIPPING_ZIP_CODE = 'shippingAddressZipCode',
267
+ IS_SHIPPING_SAME_AS_BILLING = 'isShippingSameAsBilling',
250
268
  PROMOTION_CODE = 'promotionCode',
251
269
  }
252
270
 
@@ -547,6 +565,7 @@ declare type LoopCryptoWidgetProps = {
547
565
  subscriptionRefId?: string;
548
566
  customerRefId?: string;
549
567
  invoiceRefId?: string;
568
+ allowCustomerToChooseAuth?: boolean;
550
569
  };
551
570
 
552
571
  declare interface NetworkChangeEvent {
package/dist/index.es.js CHANGED
@@ -1,10 +1,11 @@
1
- import { F as e, O as i, l as r, m as s } from "./index-BOr2ODAv.js";
1
+ import { F as i, O as r, l as p, m as s } from "./index-BfAfpgB8.js";
2
2
  import "penpal";
3
+ import "zod";
3
4
  import "uuid";
4
5
  export {
5
- e as FieldName,
6
- i as OpenPayForm,
7
- r as SubmitMethod,
6
+ i as FieldName,
7
+ r as OpenPayForm,
8
+ p as SubmitMethod,
8
9
  s as SubmitMethods
9
10
  };
10
- //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiaW5kZXguZXMuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImV4cG9ydCB7IEYgYXMgRmllbGROYW1lLCBPIGFzIE9wZW5QYXlGb3JtLCBsIGFzIFN1Ym1pdE1ldGhvZCwgbSBhcyBTdWJtaXRNZXRob2RzIH0gZnJvbSAnLi9pbmRleC0hfnswMDV9fi5qcyc7XG5pbXBvcnQgJ3BlbnBhbCc7XG5pbXBvcnQgJ3V1aWQnOyJdLAogICJtYXBwaW5ncyI6ICJBQUFBLFNBQWMsS0FBTEEsR0FBcUIsS0FBTEMsR0FBdUIsS0FBTEMsR0FBd0IsS0FBTEMsU0FBMEI7QUFDeEYsT0FBTztBQUNQLE9BQU87IiwKICAibmFtZXMiOiBbIkYiLCAiTyIsICJsIiwgIm0iXQp9Cg==
11
+ //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiaW5kZXguZXMuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImV4cG9ydCB7IEYgYXMgRmllbGROYW1lLCBPIGFzIE9wZW5QYXlGb3JtLCBsIGFzIFN1Ym1pdE1ldGhvZCwgbSBhcyBTdWJtaXRNZXRob2RzIH0gZnJvbSAnLi9pbmRleC0hfnswMDV9fi5qcyc7XG5pbXBvcnQgJ3BlbnBhbCc7XG5pbXBvcnQgJ3pvZCc7XG5pbXBvcnQgJ3V1aWQnOyJdLAogICJtYXBwaW5ncyI6ICJBQUFBLFNBQWMsS0FBTEEsR0FBcUIsS0FBTEMsR0FBdUIsS0FBTEMsR0FBd0IsS0FBTEMsU0FBMEI7QUFDeEYsT0FBTztBQUNQLE9BQU87QUFDUCxPQUFPOyIsCiAgIm5hbWVzIjogWyJGIiwgIk8iLCAibCIsICJtIl0KfQo=