@fat-zebra/sdk 2.0.1-beta.10 → 2.0.1-beta.11

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/main.d.ts CHANGED
@@ -40,7 +40,6 @@ export default class FatZebra {
40
40
  renderPaymentsPage(params: HppLoadParams): void;
41
41
  renderApplePayButton(params: ApplePayParams): void;
42
42
  renderClickToPay(params: HppClickToPayParams): void;
43
- reportThreeDSecureFetchedOnInit(data: any): void;
44
43
  reportThreeDSecureFetched(data: any, paymentIntent?: PaymentIntent): void;
45
44
  reportRequestThreedsEnabledTimeout(paymentIntent?: PaymentIntent): void;
46
45
  checkout(): void;
package/dist/main.js CHANGED
@@ -296,9 +296,6 @@ export default class FatZebra {
296
296
  });
297
297
  window.HPP.load(params);
298
298
  }
299
- reportThreeDSecureFetchedOnInit(data) {
300
- console.log("three_d_secure fetched on init", data);
301
- }
302
299
  reportThreeDSecureFetched(data, paymentIntent) {
303
300
  console.log("three_d_secure fetched", data);
304
301
  }
@@ -321,10 +318,9 @@ export default class FatZebra {
321
318
  __decorate([
322
319
  logMethod({
323
320
  mapArgs: (args) => {
324
- const params = args[0];
325
321
  return [
326
322
  {
327
- payment_intent: params === null || params === void 0 ? void 0 : params.paymentIntent
323
+ payment_intent: args[1]
328
324
  },
329
325
  ];
330
326
  },
@@ -361,22 +357,10 @@ __decorate([
361
357
  __decorate([
362
358
  logMethod({
363
359
  mapArgs: (args) => {
364
- const data = args[0];
365
- return [
366
- {
367
- data
368
- },
369
- ];
370
- },
371
- })
372
- ], FatZebra.prototype, "reportThreeDSecureFetchedOnInit", null);
373
- __decorate([
374
- logMethod({
375
- mapArgs: (args) => {
376
- const data = args[0];
377
360
  return [
378
361
  {
379
- data
362
+ data: args[0],
363
+ payment_intent: args[1]
380
364
  },
381
365
  ];
382
366
  },
@@ -385,10 +369,9 @@ __decorate([
385
369
  __decorate([
386
370
  logMethod({
387
371
  mapArgs: (args) => {
388
- const data = args[0];
389
372
  return [
390
373
  {
391
- data
374
+ payment_intent: args[0]
392
375
  },
393
376
  ];
394
377
  },
package/dist/sca/index.js CHANGED
@@ -1,3 +1,9 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
1
7
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
8
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
9
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -13,6 +19,7 @@ import { CardinalManager, } from './cardinal';
13
19
  import { emit, } from '../shared/event-manager';
14
20
  import env, { Environment } from "../shared/env";
15
21
  import { getEnrollmentResult, getValidationResult, threedsResponseData } from "./utility";
22
+ import { logMethod } from '../logging/logMethod';
16
23
  class Sca {
17
24
  constructor({ gatewayClient, successCallback, failureCallback }) {
18
25
  this.gatewayClient = gatewayClient;
@@ -221,4 +228,42 @@ class Sca {
221
228
  }
222
229
  }
223
230
  }
231
+ __decorate([
232
+ logMethod({
233
+ mapArgs: (args) => {
234
+ return [
235
+ {
236
+ message: args[0],
237
+ data: args[1],
238
+ source: 'sca'
239
+ },
240
+ ];
241
+ },
242
+ })
243
+ ], Sca.prototype, "reportFailure", null);
244
+ __decorate([
245
+ logMethod({
246
+ mapArgs: (args) => {
247
+ return [
248
+ {
249
+ message: args[0],
250
+ data: args[1],
251
+ source: 'sca'
252
+ },
253
+ ];
254
+ },
255
+ })
256
+ ], Sca.prototype, "reportSuccess", null);
257
+ __decorate([
258
+ logMethod({
259
+ mapArgs: (args) => {
260
+ const params = args[0];
261
+ return [
262
+ {
263
+ payment_intent: params.paymentIntent
264
+ },
265
+ ];
266
+ },
267
+ })
268
+ ], Sca.prototype, "run", null);
224
269
  export default Sca;
@@ -198,10 +198,30 @@ class ThreeDSecure {
198
198
  }
199
199
  }
200
200
  __decorate([
201
- logMethod()
201
+ logMethod({
202
+ mapArgs: (args) => {
203
+ return [
204
+ {
205
+ message: args[0],
206
+ data: args[1],
207
+ source: 'three_d_secure'
208
+ },
209
+ ];
210
+ },
211
+ })
202
212
  ], ThreeDSecure.prototype, "reportSuccess", null);
203
213
  __decorate([
204
- logMethod()
214
+ logMethod({
215
+ mapArgs: (args) => {
216
+ return [
217
+ {
218
+ message: args[0],
219
+ data: args[1],
220
+ source: 'three_d_secure'
221
+ },
222
+ ];
223
+ },
224
+ })
205
225
  ], ThreeDSecure.prototype, "reportFailure", null);
206
226
  __decorate([
207
227
  logMethod()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fat-zebra/sdk",
3
- "version": "2.0.1-beta.10",
3
+ "version": "2.0.1-beta.11",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {