@daffodil/authorizenet 0.94.1 → 0.95.1
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/fesm2022/daffodil-authorizenet-driver-in-memory.mjs +145 -85
- package/fesm2022/daffodil-authorizenet-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-driver-magento-2.4.7.mjs +184 -0
- package/fesm2022/daffodil-authorizenet-driver-magento-2.4.7.mjs.map +1 -0
- package/fesm2022/daffodil-authorizenet-driver-magento-auto.mjs +7 -0
- package/fesm2022/daffodil-authorizenet-driver-magento-auto.mjs.map +1 -0
- package/fesm2022/daffodil-authorizenet-driver-testing.mjs +88 -47
- package/fesm2022/daffodil-authorizenet-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-driver.mjs +153 -262
- package/fesm2022/daffodil-authorizenet-driver.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-state-testing.mjs +87 -43
- package/fesm2022/daffodil-authorizenet-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-state.mjs +364 -363
- package/fesm2022/daffodil-authorizenet-state.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-testing.mjs +49 -39
- package/fesm2022/daffodil-authorizenet-testing.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet.mjs +72 -62
- package/fesm2022/daffodil-authorizenet.mjs.map +1 -1
- package/package.json +1 -1
- package/types/daffodil-authorizenet-driver-in-memory.d.ts +35 -34
- package/types/daffodil-authorizenet-driver-magento-2.4.7.d.ts +45 -0
- package/types/daffodil-authorizenet-driver-magento-auto.d.ts +1 -0
- package/types/daffodil-authorizenet-driver-testing.d.ts +23 -20
- package/types/daffodil-authorizenet-driver.d.ts +116 -146
- package/types/daffodil-authorizenet-state-testing.d.ts +25 -21
- package/types/daffodil-authorizenet-state.d.ts +133 -140
- package/types/daffodil-authorizenet-testing.d.ts +13 -16
- package/types/daffodil-authorizenet.d.ts +57 -69
- package/fesm2022/daffodil-authorizenet-driver-magento.mjs +0 -124
- package/fesm2022/daffodil-authorizenet-driver-magento.mjs.map +0 -1
- package/types/daffodil-authorizenet-driver-magento.d.ts +0 -44
|
@@ -1,44 +1,88 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import { Injectable, NgModule } from
|
|
3
|
-
import { BehaviorSubject } from
|
|
4
|
-
import { DaffAuthorizeNetFacade } from
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Injectable, NgModule, makeEnvironmentProviders } from "@angular/core";
|
|
3
|
+
import { BehaviorSubject } from "rxjs";
|
|
4
|
+
import { DaffAuthorizeNetFacade } from "@daffodil/authorizenet/state";
|
|
5
|
+
var MockDaffAuthorizeNetFacade = class MockDaffAuthorizeNetFacade {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.isAcceptJsLoaded$ = new BehaviorSubject(false);
|
|
8
|
+
this.loading$ = new BehaviorSubject(false);
|
|
9
|
+
this.paymentError$ = new BehaviorSubject(null);
|
|
10
|
+
this.acceptJsLoadError$ = new BehaviorSubject(null);
|
|
11
|
+
}
|
|
12
|
+
dispatch(action) {}
|
|
13
|
+
static {
|
|
14
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
15
|
+
minVersion: "12.0.0",
|
|
16
|
+
version: "22.2.4",
|
|
17
|
+
ngImport: i0,
|
|
18
|
+
type: MockDaffAuthorizeNetFacade,
|
|
19
|
+
deps: [],
|
|
20
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
static {
|
|
24
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
25
|
+
minVersion: "12.0.0",
|
|
26
|
+
version: "22.2.4",
|
|
27
|
+
ngImport: i0,
|
|
28
|
+
type: MockDaffAuthorizeNetFacade,
|
|
29
|
+
providedIn: "root"
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
34
|
+
minVersion: "12.0.0",
|
|
35
|
+
version: "22.2.4",
|
|
36
|
+
ngImport: i0,
|
|
37
|
+
type: MockDaffAuthorizeNetFacade,
|
|
38
|
+
decorators: [{
|
|
39
|
+
type: Injectable,
|
|
40
|
+
args: [{ providedIn: "root" }]
|
|
41
|
+
}]
|
|
42
|
+
});
|
|
43
|
+
const provideDaffAuthorizeNetStateTesting = () => makeEnvironmentProviders([{
|
|
44
|
+
provide: DaffAuthorizeNetFacade,
|
|
45
|
+
useExisting: MockDaffAuthorizeNetFacade
|
|
46
|
+
}]);
|
|
47
|
+
var DaffAuthorizeNetStateTestingModule = class DaffAuthorizeNetStateTestingModule {
|
|
48
|
+
static {
|
|
49
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
50
|
+
minVersion: "12.0.0",
|
|
51
|
+
version: "22.2.4",
|
|
52
|
+
ngImport: i0,
|
|
53
|
+
type: DaffAuthorizeNetStateTestingModule,
|
|
54
|
+
deps: [],
|
|
55
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
static {
|
|
59
|
+
this.ɵmod = i0.ɵɵngDeclareNgModule({
|
|
60
|
+
minVersion: "14.0.0",
|
|
61
|
+
version: "22.2.4",
|
|
62
|
+
ngImport: i0,
|
|
63
|
+
type: DaffAuthorizeNetStateTestingModule
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
static {
|
|
67
|
+
this.ɵinj = i0.ɵɵngDeclareInjector({
|
|
68
|
+
minVersion: "12.0.0",
|
|
69
|
+
version: "22.2.4",
|
|
70
|
+
ngImport: i0,
|
|
71
|
+
type: DaffAuthorizeNetStateTestingModule,
|
|
72
|
+
providers: [provideDaffAuthorizeNetStateTesting()]
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
77
|
+
minVersion: "12.0.0",
|
|
78
|
+
version: "22.2.4",
|
|
79
|
+
ngImport: i0,
|
|
80
|
+
type: DaffAuthorizeNetStateTestingModule,
|
|
81
|
+
decorators: [{
|
|
82
|
+
type: NgModule,
|
|
83
|
+
args: [{ providers: [provideDaffAuthorizeNetStateTesting()] }]
|
|
84
|
+
}]
|
|
85
|
+
});
|
|
86
|
+
export { DaffAuthorizeNetStateTestingModule, MockDaffAuthorizeNetFacade, provideDaffAuthorizeNetStateTesting };
|
|
5
87
|
|
|
6
|
-
|
|
7
|
-
constructor() {
|
|
8
|
-
this.isAcceptJsLoaded$ = new BehaviorSubject(false);
|
|
9
|
-
this.loading$ = new BehaviorSubject(false);
|
|
10
|
-
this.paymentError$ = new BehaviorSubject(null);
|
|
11
|
-
this.acceptJsLoadError$ = new BehaviorSubject(null);
|
|
12
|
-
}
|
|
13
|
-
dispatch(action) { }
|
|
14
|
-
;
|
|
15
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MockDaffAuthorizeNetFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
16
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MockDaffAuthorizeNetFacade, providedIn: 'root' }); }
|
|
17
|
-
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: MockDaffAuthorizeNetFacade, decorators: [{
|
|
19
|
-
type: Injectable,
|
|
20
|
-
args: [{ providedIn: 'root' }]
|
|
21
|
-
}] });
|
|
22
|
-
|
|
23
|
-
class DaffAuthorizeNetStateTestingModule {
|
|
24
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffAuthorizeNetStateTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
25
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: DaffAuthorizeNetStateTestingModule }); }
|
|
26
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffAuthorizeNetStateTestingModule, providers: [
|
|
27
|
-
{ provide: DaffAuthorizeNetFacade, useExisting: MockDaffAuthorizeNetFacade },
|
|
28
|
-
] }); }
|
|
29
|
-
}
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffAuthorizeNetStateTestingModule, decorators: [{
|
|
31
|
-
type: NgModule,
|
|
32
|
-
args: [{
|
|
33
|
-
providers: [
|
|
34
|
-
{ provide: DaffAuthorizeNetFacade, useExisting: MockDaffAuthorizeNetFacade },
|
|
35
|
-
],
|
|
36
|
-
}]
|
|
37
|
-
}] });
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Generated bundle index. Do not edit.
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
export { DaffAuthorizeNetStateTestingModule, MockDaffAuthorizeNetFacade };
|
|
44
|
-
//# sourceMappingURL=daffodil-authorizenet-state-testing.mjs.map
|
|
88
|
+
//# sourceMappingURL=daffodil-authorizenet-state-testing.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-authorizenet-state-testing.mjs","sources":["../../../libs/authorizenet/state/testing/src/mock-authorize-net-facade.ts","../../../libs/authorizenet/state/testing/src/
|
|
1
|
+
{"version":3,"file":"daffodil-authorizenet-state-testing.mjs","names":[],"sources":["../../../libs/authorizenet/state/testing/src/mock-authorize-net-facade.ts","../../../libs/authorizenet/state/testing/src/provider.ts","../../../libs/authorizenet/state/testing/src/authorize-net-testing.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { DaffAuthorizeNetFacadeInterface } from '@daffodil/authorizenet/state';\nimport { DaffStateError } from '@daffodil/core/state';\n\n@Injectable({ providedIn: 'root' })\nexport class MockDaffAuthorizeNetFacade implements DaffAuthorizeNetFacadeInterface {\n isAcceptJsLoaded$: BehaviorSubject<boolean> = new BehaviorSubject(false);\n loading$: BehaviorSubject<boolean> = new BehaviorSubject(false);\n paymentError$: BehaviorSubject<DaffStateError> = new BehaviorSubject(null);\n acceptJsLoadError$: BehaviorSubject<DaffStateError> = new BehaviorSubject(null);\n\n dispatch(action: Action) {};\n}\n","import {\n EnvironmentProviders,\n makeEnvironmentProviders,\n} from '@angular/core';\n\nimport { DaffAuthorizeNetFacade } from '@daffodil/authorizenet/state';\n\nimport { MockDaffAuthorizeNetFacade } from './mock-authorize-net-facade';\n\n/**\n * Provides the {@link MockDaffAuthorizeNetFacade} for {@link DaffAuthorizeNetFacade}.\n */\nexport const provideDaffAuthorizeNetStateTesting = (): EnvironmentProviders => makeEnvironmentProviders([\n { provide: DaffAuthorizeNetFacade, useExisting: MockDaffAuthorizeNetFacade },\n]);\n","import { NgModule } from '@angular/core';\n\nimport { provideDaffAuthorizeNetStateTesting } from './provider';\n\n/**\n * @deprecated in favor of {@link provideDaffAuthorizeNetStateTesting} Deprecated in version 0.95.0. Will be removed in version 0.98.0.\n */\n@NgModule({\n providers: [\n provideDaffAuthorizeNetStateTesting(),\n ],\n})\nexport class DaffAuthorizeNetStateTestingModule {}\n"],"mappings":";;;;AAQA,IAAa,6BAAb,MAAa,2BAA0B;CADvC,cAAA;EAEE,KAAA,oBAA8C,IAAI,gBAAgB,KAAK;EACvE,KAAA,WAAqC,IAAI,gBAAgB,KAAK;EAC9D,KAAA,gBAAiD,IAAI,gBAAgB,IAAI;EACzE,KAAA,qBAAsD,IAAI,gBAAgB,IAAI;CAG/E;CADC,SAAS,QAAc,CAAG;CANf;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;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