@getopenpay/openpay-js 0.3.14-alpha.7c935e9 → 0.3.15-alpha.41e5b07

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,8 +1,8 @@
1
- import { m as s } from "./metrics-api-BmdmXQf4.js";
2
- import { t as d } from "./index-DfP3YYx1.js";
3
- import { l as u } from "./utils-BeclJt1e.js";
4
- import { I as N, i as T, s as w, a as E } from "./utils-BeclJt1e.js";
5
- import { d as f } from "./diag-api-_xbEFcQo.js";
1
+ import { m as s } from "./metrics-api-CCzeVi2v.js";
2
+ import { t as d } from "./index-BhCgte3r.js";
3
+ import { l as u } from "./utils-CM15rmbc.js";
4
+ import { I as N, i as T, s as w, a as E } from "./utils-CM15rmbc.js";
5
+ import { d as f } from "./diag-api-BsiZ_woC.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,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-DMJTnK7v.js";
2
- import { b as k, t as O, i as Y, T as b, d as Ie, c as B } from "./index-DfP3YYx1.js";
3
- import { d as _ } from "./diag-api-_xbEFcQo.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-BvGZe3w3.js";
2
+ import { b as k, t as O, i as Y, T as b, d as Ie, c as B } from "./index-BhCgte3r.js";
3
+ import { d as _ } from "./diag-api-BsiZ_woC.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-BKkfy_B_.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-DLIyWda0.js";
6
6
  import { _ as Ke } from "./utils-BGeftTvk.js";
7
7
  var p;
8
8
  (function(e) {
@@ -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-DfP3YYx1.js";
1
+ import { b as I, t as l, i as D, T as o, d as T, e as b } from "./index-BhCgte3r.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-_xbEFcQo.js";
1
+ import { d as diag } from "./diag-api-BsiZ_woC.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,7 +1,7 @@
1
- import { R as l } from "./Resource-BRYzUqve.js";
2
- import { d as ee } from "./Resource-BRYzUqve.js";
3
- import { d as v } from "./diag-api-_xbEFcQo.js";
4
- import { e as A, f as m, g as b, h as w, S as D } from "./sdk-info-BKkfy_B_.js";
1
+ import { R as l } from "./Resource-DY_YMY5j.js";
2
+ import { d as ee } from "./Resource-DY_YMY5j.js";
3
+ import { d as v } from "./diag-api-BsiZ_woC.js";
4
+ import { e as A, f as m, g as b, h as w, S as D } from "./sdk-info-DLIyWda0.js";
5
5
  var T = (
6
6
  /** @class */
7
7
  function() {
package/dist/index.d.ts CHANGED
@@ -166,7 +166,14 @@ 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
+ show_all_prices?: boolean;
171
+ exclusive_prices?: boolean;
172
+ price_id_product_mapping?: Record<string, string>;
173
+ require_zip_code?: boolean;
174
+ require_full_billing_address?: boolean;
175
+ require_full_shipping_address?: boolean;
176
+ };
170
177
 
171
178
  declare type ElementProps<PlaceholderType extends z.ZodTypeAny = z.ZodString> = {
172
179
  styles?: ElementsStyle<z.ZodOptional<PlaceholderType>>;
@@ -240,13 +247,23 @@ declare type ErrorStatus = {
240
247
  export declare enum FieldName {
241
248
  FIRST_NAME = 'firstName',
242
249
  LAST_NAME = 'lastName',
250
+ PHONE = 'phone',
243
251
  EMAIL = 'email',
244
- ZIP_CODE = 'zipCode',
252
+ LINE1 = 'line1',
253
+ LINE2 = 'line2',
254
+ LINE3 = 'line3',
245
255
  CITY = 'city',
246
256
  STATE = 'state',
247
257
  COUNTRY = 'country',
248
- ADDRESS = 'address',
249
- PHONE = 'phone',
258
+ ZIP_CODE = 'zipCode',
259
+ SHIPPING_LINE1 = 'shippingAddressLine1',
260
+ SHIPPING_LINE2 = 'shippingAddressLine2',
261
+ SHIPPING_LINE3 = 'shippingAddressLine3',
262
+ SHIPPING_CITY = 'shippingAddressCity',
263
+ SHIPPING_STATE = 'shippingAddressState',
264
+ SHIPPING_COUNTRY = 'shippingAddressCountry',
265
+ SHIPPING_ZIP_CODE = 'shippingAddressZipCode',
266
+ IS_SHIPPING_NOT_SAME_AS_BILLING = 'isShippingSameAsBilling',
250
267
  PROMOTION_CODE = 'promotionCode',
251
268
  }
252
269
 
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as e, O as i, l as r, m as s } from "./index-DfP3YYx1.js";
1
+ import { F as e, O as i, l as r, m as s } from "./index-BhCgte3r.js";
2
2
  import "penpal";
3
3
  import "uuid";
4
4
  export {