@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.
@@ -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-Ca030TDy.js";
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-DdbPJLpu.js";
2
- import { d as ee } from "./Resource-DdbPJLpu.js";
3
- import { d as v } from "./diag-api-DPGn2Sdx.js";
4
- import { e as A, f as m, g as b, h as w, S as D } from "./sdk-info-DKlCcJvg.js";
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 AirwallexApplePayFlowCustomParams = {
9
- overridePaymentRequest?: {
10
- amount: Amount;
11
- pending?: boolean;
12
- label?: string;
13
- applePayPaymentRequest?: ApplePayPaymentRequest;
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]: ApplePayFlowCustomParams;
1185
- [SubmitMethods.airwallexApplePay]: InitAirwallexApplePayFlowResult;
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 googlePay instead
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-Ca030TDy.js";
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+LmpzJztcbmltcG9ydCAncGVucGFsJztcbmltcG9ydCAnem9kJztcbmltcG9ydCAndXVpZCc7Il0sCiAgIm1hcHBpbmdzIjogIkFBQUEsU0FBYyxLQUFMQSxHQUFxQixLQUFMQyxHQUF1QixLQUFMQyxTQUEwQjtBQUNyRSxPQUFPO0FBQ1AsT0FBTztBQUNQLE9BQU87IiwKICAibmFtZXMiOiBbIkYiLCAiTyIsICJsIl0KfQo=
10
+ //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiaW5kZXguZXMuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImV4cG9ydCB7IEYgYXMgRmllbGROYW1lLCBPIGFzIE9wZW5QYXlGb3JtLCBsIGFzIFN1Ym1pdE1ldGhvZHMgfSBmcm9tICcuL2luZGV4LSF+ezAwNX1+LmpzJztcbmltcG9ydCAncGVucGFsJztcbmltcG9ydCAndXVpZCc7XG5pbXBvcnQgJ3pvZCc7Il0sCiAgIm1hcHBpbmdzIjogIkFBQUEsU0FBYyxLQUFMQSxHQUFxQixLQUFMQyxHQUF1QixLQUFMQyxTQUEwQjtBQUNyRSxPQUFPO0FBQ1AsT0FBTztBQUNQLE9BQU87IiwKICAibmFtZXMiOiBbIkYiLCAiTyIsICJsIl0KfQo=