@getopenpay/openpay-js 0.5.12 → 0.5.14

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-DT5HAS-D.js";
2
- import { B as c } from "./SimpleSpanProcessor-CKDfef5-.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-CKDfef5-.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-CkxL0WCq.js";
1
+ import { R as u } from "./index-DDPV-DRN.js";
2
+ import { B as c } from "./SimpleSpanProcessor-BwonVfHA.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-BwonVfHA.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-DwFEBfnB.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-BuOHZplj.js";
2
- import { d as ee } from "./Resource-BuOHZplj.js";
3
- import { d as v } from "./diag-api-BuzSOOAx.js";
4
- import { e as A, f as m, g as b, h as w, S as D } from "./sdk-info-B2Z1fEhT.js";
1
+ import { R as l } from "./Resource-qJjZ52YV.js";
2
+ import { d as ee } from "./Resource-qJjZ52YV.js";
3
+ import { d as v } from "./diag-api-CCLNzlUs.js";
4
+ import { e as A, f as m, g as b, h as w, S as D } from "./sdk-info-Ved2vK62.js";
5
5
  var T = (
6
6
  /** @class */
7
7
  function() {
@@ -1,4 +1,4 @@
1
- import { d as diag } from "./diag-api-BuzSOOAx.js";
1
+ import { d as diag } from "./diag-api-CCLNzlUs.js";
2
2
  import { E as ExportResultCode, h as hexToBinary } from "./ExportResult-B-YLKMaU.js";
3
3
  import { c as commonjsGlobal } from "./_commonjsHelpers-f76XedMs.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-WXqZ-_PR.js";
2
- import { b as k, t as O, i as Y, T as b, d as Ie, c as B } from "./index-DT5HAS-D.js";
3
- import { d as _ } from "./diag-api-BuzSOOAx.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-C-ZmHCbX.js";
2
+ import { b as k, t as O, i as Y, T as b, d as Ie, c as B } from "./index-DDPV-DRN.js";
3
+ import { d as _ } from "./diag-api-CCLNzlUs.js";
4
4
  import { h as X, E as je } from "./ExportResult-B-YLKMaU.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-B2Z1fEhT.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-Ved2vK62.js";
6
6
  import { _ as Ke } from "./utils-CX5YT7yI.js";
7
7
  var p;
8
8
  (function(e) {
package/dist/index.d.ts CHANGED
@@ -80,7 +80,7 @@ declare type ApplePayFlowCustomParams = {
80
80
  */
81
81
  processor?: PaymentProcessor;
82
82
  overridePaymentRequest?: {
83
- amount: Amount;
83
+ amount?: Amount;
84
84
  pending?: boolean;
85
85
  label?: string;
86
86
  applePayPaymentRequest?: ApplePayPaymentRequest;
@@ -345,6 +345,10 @@ export declare enum FieldName {
345
345
  SHIPPING_ZIP_CODE = 'shippingAddressZipCode',
346
346
  IS_SHIPPING_SAME_AS_BILLING = 'isShippingSameAsBilling',
347
347
  PROMOTION_CODE = 'promotionCode',
348
+ IS_BUSINESS_PURCHASE = 'isBusinessPurchase',
349
+ BUSINESS_NAME = 'businessName',
350
+ TAX_ID = 'taxId',
351
+ TAX_ID_TYPE = 'taxIdType',
348
352
  }
349
353
 
350
354
  declare const FieldNameEnum = z.nativeEnum(FieldName);
@@ -412,7 +416,7 @@ declare type GooglePayFlowCustomParams = {
412
416
  */
413
417
  processor?: PaymentProcessor;
414
418
  overridePaymentRequest?: {
415
- amount: Amount;
419
+ amount?: Amount;
416
420
  pending?: boolean;
417
421
  label?: string;
418
422
  googlePayPaymentRequest?: GooglePayPaymentRequest;
@@ -1096,7 +1100,7 @@ declare type PaymentRequestProvider = z.infer<typeof PaymentRequestProvider>;
1096
1100
 
1097
1101
  declare type PaymentRequestStartParams = {
1098
1102
  overridePaymentRequest?: {
1099
- amount: Amount;
1103
+ amount?: Amount;
1100
1104
  pending?: boolean;
1101
1105
  label?: string;
1102
1106
  applePayPaymentRequest?: ApplePayPaymentRequest;
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as p, F as r, O as i, l as s } from "./index-DT5HAS-D.js";
1
+ import { E as p, F as r, O as i, l as s } from "./index-DDPV-DRN.js";
2
2
  import "penpal";
3
3
  import "uuid";
4
4
  import "zod";