@getopenpay/openpay-js 0.5.2-alpha.f4e728d → 0.5.3-alpha.06a0f22

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,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-DaKAIrb9.js";
1
+ import { b as I, t as l, i as D, T as o, d as T, e as b } from "./index-C8_kFe-5.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 { 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-Bk5bhNFT.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-58znmE0P.js";
2
2
  export {
3
3
  r as AlwaysOffSampler,
4
4
  e as AlwaysOnSampler,
@@ -1,4 +1,4 @@
1
- import { d as diag } from "./diag-api-wNd1cux8.js";
1
+ import { d as diag } from "./diag-api-Cw56CuP-.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 { m as s } from "./metrics-api-Dap6n9lh.js";
2
- import { t as d } from "./index-DaKAIrb9.js";
3
- import { l as u } from "./utils-5wTrnBkz.js";
4
- import { I as N, i as T, s as w, a as E } from "./utils-5wTrnBkz.js";
5
- import { d as f } from "./diag-api-wNd1cux8.js";
1
+ import { m as s } from "./metrics-api-l6HjTe7E.js";
2
+ import { t as d } from "./index-C8_kFe-5.js";
3
+ import { l as u } from "./utils-DcEP2Fcf.js";
4
+ import { I as N, i as T, s as w, a as E } from "./utils-DcEP2Fcf.js";
5
+ import { d as f } from "./diag-api-Cw56CuP-.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,7 +1,7 @@
1
- import { R as l } from "./Resource-CP-TPs0e.js";
2
- import { d as ee } from "./Resource-CP-TPs0e.js";
3
- import { d as v } from "./diag-api-wNd1cux8.js";
4
- import { e as A, f as m, g as b, h as w, S as D } from "./sdk-info-BRJXQJgK.js";
1
+ import { R as l } from "./Resource-CK2Ya-le.js";
2
+ import { d as ee } from "./Resource-CK2Ya-le.js";
3
+ import { d as v } from "./diag-api-Cw56CuP-.js";
4
+ import { e as A, f as m, g as b, h as w, S as D } from "./sdk-info-B2kwiOQV.js";
5
5
  var T = (
6
6
  /** @class */
7
7
  function() {
@@ -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-RYiHiQ0U.js";
2
- import { b as k, t as O, i as Y, T as b, d as Ie, c as B } from "./index-DaKAIrb9.js";
3
- import { d as _ } from "./diag-api-wNd1cux8.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-Gx7TzErP.js";
2
+ import { b as k, t as O, i as Y, T as b, d as Ie, c as B } from "./index-C8_kFe-5.js";
3
+ import { d as _ } from "./diag-api-Cw56CuP-.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-BRJXQJgK.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-B2kwiOQV.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-DaKAIrb9.js";
1
+ import { R as Le } from "./index-C8_kFe-5.js";
2
2
  function Et(e) {
3
3
  return e === void 0 && (e = {}), typeof e.addEventListener == "function" && typeof e.removeEventListener == "function";
4
4
  }
package/dist/index.d.ts CHANGED
@@ -5,34 +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 AirwallexACHFlowParams = {
9
- verificationMethod?: 'plaid' /*| 'micro_deposit'*/;
10
- defaultAccountType?: 'personal' | 'business';
11
- defaultFieldValues?: DefaultFieldValues;
12
- };
13
-
14
- declare type AirwallexBACSFlowParams = {
15
- verificationMethod?: 'truelayer' /*| 'micro_deposit'*/;
16
- defaultFieldValues?: DefaultFieldValues;
17
- // sortCode?: string;
18
- // accountNumber?: string;
19
- };
20
-
21
- declare type AirwallexEFTFlowParams = {
22
- verificationMethod?: 'plaid' /*| 'micro_deposit'*/;
23
- defaultAccountType?: 'personal' | 'business';
24
- defaultFieldValues?: DefaultFieldValues;
25
- // institutionNumber?: string;
26
- // transitNumber?: string;
27
- // accountNumber?: string;
28
- };
29
-
30
- declare type AirwallexSEPAFlowParams = {
31
- verificationMethod?: 'truelayer' /*| 'micro_deposit'*/;
32
- defaultFieldValues?: DefaultFieldValues;
33
- // iban?: string;
34
- };
35
-
36
8
  declare type AllCallbacks = {
37
9
  onFocus?: (elementId: string, field: AllFieldNames) => void;
38
10
  onBlur?: (
@@ -578,13 +550,8 @@ declare interface LoopConnectConfig {
578
550
  declare type LoopCryptoFlowCustomParams =
579
551
  | {
580
552
  customer: Omit<CustomerResponse, 'paymentMethods' | 'merchants' | 'dateCreated'>;
581
- payin: PayInCompleteEvent;
582
- mode: 'checkout';
583
- success: true;
584
- }
585
- | {
586
- customer: Omit<CustomerResponse, 'paymentMethods' | 'merchants' | 'dateCreated'>;
587
- mode: 'setup';
553
+ paymentMethod: Omit<PaymentMethodResponse, 'customer' | 'dateCreated'>;
554
+ mode: 'setup' | 'payment' | 'subscription';
588
555
  success: true;
589
556
  }
590
557
  | {
@@ -733,26 +700,6 @@ declare const OjsFlows = {
733
700
  run: runAirwallexApplePayFlow,
734
701
  },
735
702
 
736
- airwallexACH: {
737
- init: async () => {},
738
- run: runAirwallexACHFlow,
739
- },
740
-
741
- airwallexEFT: {
742
- init: async () => {},
743
- run: runAirwallexEFTFlow,
744
- },
745
-
746
- airwallexBACS: {
747
- init: async () => {},
748
- run: runAirwallexBACSFlow,
749
- },
750
-
751
- airwallexSEPA: {
752
- init: async () => {},
753
- run: runAirwallexSEPAFlow,
754
- },
755
-
756
703
  // Loop
757
704
  loopCrypto: {
758
705
  init: initLoopFlow,
@@ -923,11 +870,6 @@ export declare class OpenPayForm {
923
870
  updateCallbacks: (newCallbacks: AllCallbacks) => void;
924
871
  }
925
872
 
926
- /**
927
- * @deprecated Use interface PayInCreatedEvent for data returned from the creation of a PayIn
928
- */
929
- declare interface PayInCompleteEvent extends PayinResponse {}
930
-
931
873
  declare enum PayInFailed {
932
874
  // Create payment method
933
875
  METHOD_CREATION_FAILED = 'methodCreationFailed',
@@ -951,109 +893,6 @@ declare interface PayInFailedEvent {
951
893
  data: PayInFailedData;
952
894
  }
953
895
 
954
- declare interface PayinPaymentMethodResponse
955
- extends Omit<PaymentMethodResponse, 'merchantId' | 'entityId' | 'dateCreated'> {
956
- /**
957
- * The status of the payment method
958
- */
959
- status: 'ok' | 'insufficient_balance' | 'insufficient_authorization' | 'insufficient_balance_authorization';
960
- }
961
-
962
- declare interface PayinPayoutDestinationResponse
963
- extends Omit<PayoutDestinationResponse, 'merchantId' | 'entityId' | 'isDefault' | 'dateCreated'> {}
964
-
965
- declare interface PayinResponse {
966
- /**
967
- * The unique identifier for the payin
968
- * @example "8f47c6e9-2b3a-4d5c-9f8e-1a2b3c4d5e6f"
969
- */
970
- payinId: string;
971
- /**
972
- * The unique identifier of the merchant this payin is associated with
973
- * @example "67e55044-10b1-426f-9247-bb680e5fe0c8"
974
- */
975
- merchantId: string;
976
- /**
977
- * The amount to be paid, specified in either fiat or crypto based on amountType
978
- * @example "100.00"
979
- */
980
- amount: string;
981
- /**
982
- * The type of the amount, either "fiat" or "token"
983
- * @example "fiat"
984
- */
985
- amountType: 'fiat' | 'token';
986
- /**
987
- * The date the payment will take place, represented as a Unix timestamp
988
- * @example 1716211200
989
- */
990
- billDate: number;
991
- /**
992
- * The unique invoice identifier representing this payin transaction
993
- * @example "1234567890abcdef"
994
- */
995
- invoiceId: string;
996
- /**
997
- * (Optional) A description or note that provides additional context about this payin. This can be used to help identify or provide details about the payment for internal reference or customer communications.
998
- * @example "Payment for Developer plan"
999
- */
1000
- description: string | null;
1001
- /**
1002
- * (Optional) The external invoice ID used to tie this payin to an invoice in an external system
1003
- * @example "1234567890abcdef"
1004
- */
1005
- externalInvoiceRef: string | null;
1006
- /**
1007
- * The type of the payin, either "subscription" or "invoice"
1008
- * @example "subscription"
1009
- */
1010
- payinType: 'subscription' | 'invoice';
1011
- /**
1012
- * The status of the payin, can be "scheduled", "pending", "completed", or "failed"
1013
- * @example "scheduled"
1014
- */
1015
- payinStatus: 'scheduled' | 'pending' | 'completed' | 'failed' | 'canceled' | 'uncollectible' | 'draft';
1016
- /**
1017
- * The transaction details for the payin
1018
- */
1019
- transaction: PayinTransactionResponse | null;
1020
- /**
1021
- * The payment method used for this payin
1022
- */
1023
- paymentMethod: PayinPaymentMethodResponse;
1024
- /**
1025
- * The payout destination used for this payin
1026
- */
1027
- payoutDestination: PayinPayoutDestinationResponse;
1028
- /**
1029
- * The date the payin record was created, represented as a Unix timestamp in seconds.
1030
- * @example 1716211200
1031
- */
1032
- dateCreated: number;
1033
- }
1034
-
1035
- declare interface PayinTransactionResponse {
1036
- /**
1037
- * The transaction id generated by the blockchain network when the transaction is processed
1038
- * @example "0xcfdfbb523c079e47e9a17ba236fa978257d4331e96ec43997e974b97522047fe"
1039
- */
1040
- transactionId: string;
1041
- /**
1042
- * The URL to view this transaction in a blockchain explorer. The specific explorer URL depends on the blockchain network the transaction was processed on
1043
- * @example "https://etherscan.io/tx/0xcfdfbb523c079e47e9a17ba236fa978257d4331e96ec43997e974b97522047fe"
1044
- */
1045
- transactionUrl: string;
1046
- /**
1047
- * The actual token amount that was transferred including all decimal places. For example - an amount of 1.99 USDC will result in a `amountTransferred` of "1990000"
1048
- * @example "1990000"
1049
- */
1050
- amountTransferred: string | null;
1051
- /**
1052
- * The exchange rate that was applied when the payment was processed on the blockchain
1053
- */
1054
- exchangeRate: PaymentMethodTokenExchangeRate | null;
1055
- }
1056
-
1057
896
  declare type PaymentDataRequest = google.payments.api.PaymentDataRequest;
1058
897
 
1059
898
  declare interface PaymentMethodPreAuthorization {
@@ -1167,39 +1006,6 @@ declare type PaymentRequestStatus = {
1167
1006
  startFlow: (params?: PaymentRequestStartParams) => Promise<void>;
1168
1007
  };
1169
1008
 
1170
- declare interface PayoutDestinationResponse {
1171
- /**
1172
- * The unique identifier for the payout destination
1173
- * @example "1234567890abcdef"
1174
- */
1175
- payoutDestinationId: string;
1176
- /**
1177
- * The merchant ID associated with this payout destination
1178
- * @example "1234567890abcdef"
1179
- */
1180
- merchantId: string;
1181
- /**
1182
- * The blockchain network ID the payout destination is associated with
1183
- * @example 1
1184
- */
1185
- networkId: number;
1186
- /**
1187
- * The blockchain wallet address where payments will be sent. Must be a valid address for the specified network.
1188
- * @example "0x1234567890abcdef"
1189
- */
1190
- walletAddress: string;
1191
- /**
1192
- * Whether the payout destination is the default payout destination for the merchant.
1193
- * @example true
1194
- */
1195
- isDefault: boolean;
1196
- /**
1197
- * The date the payout destination record was created, represented as a Unix timestamp in seconds.
1198
- * @example 1716211200
1199
- */
1200
- dateCreated: number;
1201
- }
1202
-
1203
1009
  declare type PaypalFlowCustomParams = {
1204
1010
  isAnonymous?: boolean;
1205
1011
  useRedirectFlow?: boolean;
@@ -1219,11 +1025,6 @@ declare type ProcessorSpecificSubmitSettings<T extends SubmitMethod = SubmitMeth
1219
1025
  [SubmitMethods.authorizenetApplePay]: ApplePayFlowCustomParams;
1220
1026
  [SubmitMethods.adyenGooglePay]: GooglePayFlowCustomParams;
1221
1027
  [SubmitMethods.adyenApplePay]: ApplePayFlowCustomParams;
1222
-
1223
- [SubmitMethods.airwallexACH]: AirwallexACHFlowParams;
1224
- [SubmitMethods.airwallexEFT]: AirwallexEFTFlowParams;
1225
- [SubmitMethods.airwallexBACS]: AirwallexBACSFlowParams;
1226
- [SubmitMethods.airwallexSEPA]: AirwallexSEPAFlowParams;
1227
1028
  }[T];
1228
1029
 
1229
1030
  declare type PRStatuses = Record<PaymentRequestProvider, PaymentRequestStatus>;
@@ -1279,12 +1080,6 @@ export declare enum SubmitMethods {
1279
1080
  * @deprecated Use applePay instead
1280
1081
  */
1281
1082
  adyenApplePay = 'adyen-apple-pay',
1282
-
1283
- // DD
1284
- airwallexACH = 'airwallex-ach',
1285
- airwallexEFT = 'airwallex-eft',
1286
- airwallexBACS = 'airwallex-bacs',
1287
- airwallexSEPA = 'airwallex-sepa',
1288
1083
  }
1289
1084
 
1290
1085
  export declare type SubmitSettings<T extends SubmitMethod = SubmitMethod> = ProcessorSpecificSubmitSettings<T> &
package/dist/index.es.js CHANGED
@@ -1,10 +1,10 @@
1
- import { F as e, O as i, l as p } from "./index-DaKAIrb9.js";
1
+ import { F as e, O as i, l as p } from "./index-C8_kFe-5.js";
2
2
  import "penpal";
3
- import "uuid";
4
3
  import "zod";
4
+ import "uuid";
5
5
  export {
6
6
  e as FieldName,
7
7
  i as OpenPayForm,
8
8
  p as SubmitMethods
9
9
  };
10
- //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiaW5kZXguZXMuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImV4cG9ydCB7IEYgYXMgRmllbGROYW1lLCBPIGFzIE9wZW5QYXlGb3JtLCBsIGFzIFN1Ym1pdE1ldGhvZHMgfSBmcm9tICcuL2luZGV4LSF+ezAwNX1+LmpzJztcbmltcG9ydCAncGVucGFsJztcbmltcG9ydCAndXVpZCc7XG5pbXBvcnQgJ3pvZCc7Il0sCiAgIm1hcHBpbmdzIjogIkFBQUEsU0FBYyxLQUFMQSxHQUFxQixLQUFMQyxHQUF1QixLQUFMQyxTQUEwQjtBQUNyRSxPQUFPO0FBQ1AsT0FBTztBQUNQLE9BQU87IiwKICAibmFtZXMiOiBbIkYiLCAiTyIsICJsIl0KfQo=
10
+ //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiaW5kZXguZXMuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImV4cG9ydCB7IEYgYXMgRmllbGROYW1lLCBPIGFzIE9wZW5QYXlGb3JtLCBsIGFzIFN1Ym1pdE1ldGhvZHMgfSBmcm9tICcuL2luZGV4LSF+ezAwNX1+LmpzJztcbmltcG9ydCAncGVucGFsJztcbmltcG9ydCAnem9kJztcbmltcG9ydCAndXVpZCc7Il0sCiAgIm1hcHBpbmdzIjogIkFBQUEsU0FBYyxLQUFMQSxHQUFxQixLQUFMQyxHQUF1QixLQUFMQyxTQUEwQjtBQUNyRSxPQUFPO0FBQ1AsT0FBTztBQUNQLE9BQU87IiwKICAibmFtZXMiOiBbIkYiLCAiTyIsICJsIl0KfQo=