@getopenpay/openpay-js 0.5.0-alpha.62d9c95 → 0.5.2-alpha.f4e728d
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.
- package/dist/{Resource-DdbPJLpu.js → Resource-CP-TPs0e.js} +2 -2
- package/dist/{SimpleSpanProcessor-CUoy0lbi.js → SimpleSpanProcessor-Bk5bhNFT.js} +6 -6
- package/dist/{detect-resources-kwIAKay7.js → detect-resources-CY7GxzJ8.js} +6 -6
- package/dist/{diag-api-DPGn2Sdx.js → diag-api-wNd1cux8.js} +1 -1
- package/dist/{index-Bwd1tNUe.js → index-BQtGjdf8.js} +4 -4
- package/dist/{index-CP76bUOn.js → index-BUT7JePl.js} +4 -4
- package/dist/{index-JLQEnbcL.js → index-BiIKBw1U.js} +5 -5
- package/dist/{index-J9bkDUpa.js → index-CSgkD68q.js} +1 -1
- package/dist/{index-B8S6Pkxe.js → index-CUOKcMsk.js} +1 -1
- package/dist/{index-B79PHAxa.js → index-Cp489RRs.js} +5 -5
- package/dist/{index-B_duH4De.js → index-D1faRh7m.js} +1 -1
- package/dist/index-DaKAIrb9.js +6804 -0
- package/dist/{index-B7uqJ-l5.js → index-_fXRqJ3r.js} +1 -1
- package/dist/{index-V1FP-TLo.js → index-heNdKV3V.js} +4 -4
- package/dist/index.d.ts +59 -16
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +156 -17
- package/dist/{metrics-api-DlHxJhGO.js → metrics-api-Dap6n9lh.js} +1 -1
- package/dist/{sdk-info-DKlCcJvg.js → sdk-info-BRJXQJgK.js} +1 -1
- package/dist/{url-De9F-_C0.js → url-RYiHiQ0U.js} +1 -1
- package/dist/{utils-CT2-sflt.js → utils-5wTrnBkz.js} +3 -3
- package/dist/{utils-BIbbsEZ_.js → utils-CXQg99O5.js} +1 -1
- package/package.json +1 -1
- package/dist/index-Ca030TDy.js +0 -6171
|
@@ -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-
|
|
1
|
+
import { b as I, t as l, i as D, T as o, d as T, e as b } from "./index-DaKAIrb9.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,7 +1,7 @@
|
|
|
1
|
-
import { R as l } from "./Resource-
|
|
2
|
-
import { d as ee } from "./Resource-
|
|
3
|
-
import { d as v } from "./diag-api-
|
|
4
|
-
import { e as A, f as m, g as b, h as w, S as D } from "./sdk-info-
|
|
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";
|
|
5
5
|
var T = (
|
|
6
6
|
/** @class */
|
|
7
7
|
function() {
|
package/dist/index.d.ts
CHANGED
|
@@ -5,14 +5,32 @@ 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
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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'*/;
|
|
15
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;
|
|
16
34
|
};
|
|
17
35
|
|
|
18
36
|
declare type AllCallbacks = {
|
|
@@ -358,12 +376,6 @@ declare type GooglePayPaymentRequest =
|
|
|
358
376
|
| ((current: PaymentDataRequest) => Partial<PaymentDataRequest>)
|
|
359
377
|
| Partial<PaymentDataRequest>;
|
|
360
378
|
|
|
361
|
-
declare type InitAirwallexApplePayFlowResult = {
|
|
362
|
-
isAvailable: boolean;
|
|
363
|
-
isLoading: boolean;
|
|
364
|
-
startFlow: (customParams?: AirwallexApplePayFlowCustomParams) => Promise<void>;
|
|
365
|
-
};
|
|
366
|
-
|
|
367
379
|
declare type InitApplePayFlowResult = {
|
|
368
380
|
processor: PaymentProcessor;
|
|
369
381
|
isAvailable: boolean;
|
|
@@ -721,6 +733,26 @@ declare const OjsFlows = {
|
|
|
721
733
|
run: runAirwallexApplePayFlow,
|
|
722
734
|
},
|
|
723
735
|
|
|
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
|
+
|
|
724
756
|
// Loop
|
|
725
757
|
loopCrypto: {
|
|
726
758
|
init: initLoopFlow,
|
|
@@ -1181,12 +1213,17 @@ declare type ProcessorSpecificSubmitSettings<T extends SubmitMethod = SubmitMeth
|
|
|
1181
1213
|
[SubmitMethods.paypal]: PaypalFlowCustomParams;
|
|
1182
1214
|
// TODO: The following methods are deprecated and will be removed in the future.
|
|
1183
1215
|
// Use googlePay/applePay instead
|
|
1184
|
-
[SubmitMethods.airwallexGooglePay]:
|
|
1185
|
-
[SubmitMethods.airwallexApplePay]:
|
|
1216
|
+
[SubmitMethods.airwallexGooglePay]: GooglePayFlowCustomParams;
|
|
1217
|
+
[SubmitMethods.airwallexApplePay]: ApplePayFlowCustomParams;
|
|
1186
1218
|
[SubmitMethods.authorizenetGooglePay]: GooglePayFlowCustomParams;
|
|
1187
1219
|
[SubmitMethods.authorizenetApplePay]: ApplePayFlowCustomParams;
|
|
1188
1220
|
[SubmitMethods.adyenGooglePay]: GooglePayFlowCustomParams;
|
|
1189
1221
|
[SubmitMethods.adyenApplePay]: ApplePayFlowCustomParams;
|
|
1222
|
+
|
|
1223
|
+
[SubmitMethods.airwallexACH]: AirwallexACHFlowParams;
|
|
1224
|
+
[SubmitMethods.airwallexEFT]: AirwallexEFTFlowParams;
|
|
1225
|
+
[SubmitMethods.airwallexBACS]: AirwallexBACSFlowParams;
|
|
1226
|
+
[SubmitMethods.airwallexSEPA]: AirwallexSEPAFlowParams;
|
|
1190
1227
|
}[T];
|
|
1191
1228
|
|
|
1192
1229
|
declare type PRStatuses = Record<PaymentRequestProvider, PaymentRequestStatus>;
|
|
@@ -1223,7 +1260,7 @@ export declare enum SubmitMethods {
|
|
|
1223
1260
|
*/
|
|
1224
1261
|
airwallexGooglePay = 'airwallex-google-pay',
|
|
1225
1262
|
/**
|
|
1226
|
-
* @deprecated Use
|
|
1263
|
+
* @deprecated Use applePay instead
|
|
1227
1264
|
*/
|
|
1228
1265
|
airwallexApplePay = 'airwallex-apple-pay',
|
|
1229
1266
|
/**
|
|
@@ -1242,6 +1279,12 @@ export declare enum SubmitMethods {
|
|
|
1242
1279
|
* @deprecated Use applePay instead
|
|
1243
1280
|
*/
|
|
1244
1281
|
adyenApplePay = 'adyen-apple-pay',
|
|
1282
|
+
|
|
1283
|
+
// DD
|
|
1284
|
+
airwallexACH = 'airwallex-ach',
|
|
1285
|
+
airwallexEFT = 'airwallex-eft',
|
|
1286
|
+
airwallexBACS = 'airwallex-bacs',
|
|
1287
|
+
airwallexSEPA = 'airwallex-sepa',
|
|
1245
1288
|
}
|
|
1246
1289
|
|
|
1247
1290
|
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-
|
|
1
|
+
import { F as e, O as i, l as p } from "./index-DaKAIrb9.js";
|
|
2
2
|
import "penpal";
|
|
3
|
-
import "zod";
|
|
4
3
|
import "uuid";
|
|
4
|
+
import "zod";
|
|
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+
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiaW5kZXguZXMuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImV4cG9ydCB7IEYgYXMgRmllbGROYW1lLCBPIGFzIE9wZW5QYXlGb3JtLCBsIGFzIFN1Ym1pdE1ldGhvZHMgfSBmcm9tICcuL2luZGV4LSF+ezAwNX1+LmpzJztcbmltcG9ydCAncGVucGFsJztcbmltcG9ydCAndXVpZCc7XG5pbXBvcnQgJ3pvZCc7Il0sCiAgIm1hcHBpbmdzIjogIkFBQUEsU0FBYyxLQUFMQSxHQUFxQixLQUFMQyxHQUF1QixLQUFMQyxTQUEwQjtBQUNyRSxPQUFPO0FBQ1AsT0FBTztBQUNQLE9BQU87IiwKICAibmFtZXMiOiBbIkYiLCAiTyIsICJsIl0KfQo=
|