@daffodil/authorizenet 0.94.1-rc.0 → 0.95.0
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,178 +1,171 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { Action, ActionReducer, MemoizedSelector, Store } from
|
|
3
|
-
import { DaffAuthorizeNetTokenRequest, DaffAuthorizenetPaymentRequest } from
|
|
4
|
-
import { DaffCartAddress } from
|
|
5
|
-
import { DaffIdentifiable } from
|
|
6
|
-
import { DaffStateError,
|
|
7
|
-
import { DaffPersonalAddress } from
|
|
8
|
-
import * as i1 from
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import * as i2 from
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
LoadAcceptJsFailureAction = "[@daffodil/authorizenet] Load Accept Js Failure"
|
|
1
|
+
import * as i1$1 from "@ngrx/store";
|
|
2
|
+
import { Action, ActionReducer, MemoizedSelector, Store } from "@ngrx/store";
|
|
3
|
+
import { DaffAuthorizeNetTokenRequest, DaffAuthorizenetPaymentRequest } from "@daffodil/authorizenet";
|
|
4
|
+
import { DaffCartAddress } from "@daffodil/cart";
|
|
5
|
+
import { DaffIdentifiable } from "@daffodil/core";
|
|
6
|
+
import { DaffStateError, DaffStoreFacade, daffTransformErrorToStateError } from "@daffodil/core/state";
|
|
7
|
+
import { DaffPersonalAddress } from "@daffodil/geography";
|
|
8
|
+
import * as i1 from "@daffodil/payment/state";
|
|
9
|
+
import { DaffPaymentActions, DaffPaymentGenerateToken } from "@daffodil/payment/state";
|
|
10
|
+
import { Observable } from "rxjs";
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
import { EnvironmentProviders, ModuleWithProviders } from "@angular/core";
|
|
13
|
+
import * as i2 from "@ngrx/effects";
|
|
14
|
+
export declare enum DaffAuthorizeNetActionTypes {
|
|
15
|
+
UpdatePaymentAction = "[@daffodil/authorizenet] Update Payment",
|
|
16
|
+
UpdatePaymentSuccessAction = "[@daffodil/authorizenet] Update Payment Success",
|
|
17
|
+
UpdatePaymentFailureAction = "[@daffodil/authorizenet] Update Payment Failure",
|
|
18
|
+
ApplyPaymentAction = "[@daffodil/authorizenet] Apply Payment",
|
|
19
|
+
LoadAcceptJsAction = "[@daffodil/authorizenet] Load Accept Js",
|
|
20
|
+
LoadAcceptJsSuccessAction = "[@daffodil/authorizenet] Load Accept Js Success",
|
|
21
|
+
LoadAcceptJsFailureAction = "[@daffodil/authorizenet] Load Accept Js Failure"
|
|
23
22
|
}
|
|
24
23
|
/**
|
|
25
24
|
* An action triggered to initialize a generate token request.
|
|
26
25
|
*
|
|
27
26
|
* @param payload - An DaffAuthorizeNetRequestData object.
|
|
28
27
|
*/
|
|
29
|
-
declare class DaffAuthorizeNetUpdatePayment<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest, V extends DaffCartAddress = DaffCartAddress> implements Action {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
export declare class DaffAuthorizeNetUpdatePayment<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest, V extends DaffCartAddress = DaffCartAddress> implements Action {
|
|
29
|
+
tokenRequest: T;
|
|
30
|
+
address: Partial<V>;
|
|
31
|
+
readonly type = DaffAuthorizeNetActionTypes.UpdatePaymentAction;
|
|
32
|
+
constructor(tokenRequest: T, address: Partial<V>);
|
|
34
33
|
}
|
|
35
34
|
/**
|
|
36
35
|
* An action triggered upon successfully updating the payment method.
|
|
37
36
|
*
|
|
38
37
|
* @param payload - A string that is the payment nonce for a credit card.
|
|
39
38
|
*/
|
|
40
|
-
declare class DaffAuthorizeNetUpdatePaymentSuccess implements Action {
|
|
41
|
-
|
|
39
|
+
export declare class DaffAuthorizeNetUpdatePaymentSuccess implements Action {
|
|
40
|
+
readonly type = DaffAuthorizeNetActionTypes.UpdatePaymentSuccessAction;
|
|
42
41
|
}
|
|
43
42
|
/**
|
|
44
43
|
* An action triggered upon failing to update the payment method.
|
|
45
44
|
*
|
|
46
45
|
* @param payload - A string that is an error message.
|
|
47
46
|
*/
|
|
48
|
-
declare class DaffAuthorizeNetUpdatePaymentFailure implements Action {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
export declare class DaffAuthorizeNetUpdatePaymentFailure implements Action {
|
|
48
|
+
payload: DaffStateError;
|
|
49
|
+
readonly type = DaffAuthorizeNetActionTypes.UpdatePaymentFailureAction;
|
|
50
|
+
constructor(payload: DaffStateError);
|
|
52
51
|
}
|
|
53
|
-
declare class DaffLoadAcceptJs implements Action {
|
|
54
|
-
|
|
52
|
+
export declare class DaffLoadAcceptJs implements Action {
|
|
53
|
+
readonly type = DaffAuthorizeNetActionTypes.LoadAcceptJsAction;
|
|
55
54
|
}
|
|
56
55
|
/**
|
|
57
56
|
* Indicates that the AcceptJs library has loaded successfully.
|
|
58
57
|
*/
|
|
59
|
-
declare class DaffLoadAcceptJsSuccess implements Action {
|
|
60
|
-
|
|
58
|
+
export declare class DaffLoadAcceptJsSuccess implements Action {
|
|
59
|
+
readonly type = DaffAuthorizeNetActionTypes.LoadAcceptJsSuccessAction;
|
|
61
60
|
}
|
|
62
61
|
/**
|
|
63
62
|
* Indicates that the AcceptJs library has failed to load
|
|
64
63
|
*/
|
|
65
|
-
declare class DaffLoadAcceptJsFailure implements Action {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
export declare class DaffLoadAcceptJsFailure implements Action {
|
|
65
|
+
payload: DaffStateError;
|
|
66
|
+
readonly type = DaffAuthorizeNetActionTypes.LoadAcceptJsFailureAction;
|
|
67
|
+
constructor(payload: DaffStateError);
|
|
69
68
|
}
|
|
70
69
|
/**
|
|
71
70
|
* Triggers the application of an authorize.net payment.
|
|
72
71
|
*
|
|
73
72
|
* @role action
|
|
74
73
|
*/
|
|
75
|
-
declare class DaffAuthorizenetApplyPayment implements DaffPaymentGenerateToken<DaffAuthorizenetPaymentRequest> {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
type DaffAuthorizeNetActions<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest> = DaffAuthorizeNetUpdatePayment<T> | DaffAuthorizeNetUpdatePaymentSuccess | DaffAuthorizeNetUpdatePaymentFailure | DaffAuthorizenetApplyPayment | DaffLoadAcceptJsSuccess | DaffLoadAcceptJsFailure | DaffLoadAcceptJs;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
interface
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
declare function daffAuthorizeNetReducer<T extends DaffAuthorizeNetTokenRequest>(state: DaffAuthorizeNetReducerState, action: DaffAuthorizeNetActions<T> | DaffPaymentActions): DaffAuthorizeNetReducerState;
|
|
100
|
-
|
|
101
|
-
declare const daffAuthorizeNetReducers: {
|
|
102
|
-
authorizeNet: typeof daffAuthorizeNetReducer;
|
|
74
|
+
export declare class DaffAuthorizenetApplyPayment implements DaffPaymentGenerateToken<DaffAuthorizenetPaymentRequest> {
|
|
75
|
+
request: DaffAuthorizenetPaymentRequest;
|
|
76
|
+
address?: DaffPersonalAddress | DaffIdentifiable;
|
|
77
|
+
readonly type = DaffAuthorizeNetActionTypes.ApplyPaymentAction;
|
|
78
|
+
constructor(request: DaffAuthorizenetPaymentRequest, address?: DaffPersonalAddress | DaffIdentifiable);
|
|
79
|
+
}
|
|
80
|
+
export type DaffAuthorizeNetActions<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest> = DaffAuthorizeNetUpdatePayment<T> | DaffAuthorizeNetUpdatePaymentSuccess | DaffAuthorizeNetUpdatePaymentFailure | DaffAuthorizenetApplyPayment | DaffLoadAcceptJsSuccess | DaffLoadAcceptJsFailure | DaffLoadAcceptJs;
|
|
81
|
+
export interface DaffAuthorizeNetReducerState {
|
|
82
|
+
isAcceptLoaded: boolean;
|
|
83
|
+
paymentError: DaffStateError;
|
|
84
|
+
acceptJsLoadError: DaffStateError;
|
|
85
|
+
loading: boolean;
|
|
86
|
+
}
|
|
87
|
+
export declare const DAFF_AUTHORIZENET_STORE_FEATURE_KEY = "daffAuthorizenet";
|
|
88
|
+
export interface DaffAuthorizeNetReducersState {
|
|
89
|
+
authorizeNet: DaffAuthorizeNetReducerState;
|
|
90
|
+
}
|
|
91
|
+
export interface DaffAuthorizeNetStateRootSlice {
|
|
92
|
+
[DAFF_AUTHORIZENET_STORE_FEATURE_KEY]: DaffAuthorizeNetReducersState;
|
|
93
|
+
}
|
|
94
|
+
export declare function daffAuthorizeNetReducer<T extends DaffAuthorizeNetTokenRequest>(state: DaffAuthorizeNetReducerState, action: DaffAuthorizeNetActions<T> | DaffPaymentActions): DaffAuthorizeNetReducerState;
|
|
95
|
+
export declare const daffAuthorizeNetReducers: {
|
|
96
|
+
authorizeNet: typeof daffAuthorizeNetReducer;
|
|
103
97
|
};
|
|
104
|
-
|
|
105
|
-
declare const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
*/
|
|
130
|
-
acceptBackoffTiming: number;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
declare const daffAuthorizeNetStateDefaultConfig: DaffAuthorizeNetStateConfig;
|
|
134
|
-
|
|
135
|
-
declare const DAFF_AUTHORIZE_NET_STATE_CONFIG: i0.InjectionToken<DaffAuthorizeNetStateConfig>;
|
|
136
|
-
declare const provideDaffAuthorizeNetStateConfig: <R extends DaffAuthorizeNetStateConfig = DaffAuthorizeNetStateConfig>(config: Partial<R> | i0.InjectionToken<Partial<R>>) => i0.FactoryProvider;
|
|
137
|
-
|
|
98
|
+
export declare const DAFF_AUTHORIZE_NET_EXTRA_REDUCERS: import("@angular/core").InjectionToken<ActionReducer<DaffAuthorizeNetReducersState, import("@ngrx/store").Action<string>>[]>, daffAuthorizeNetProvideExtraReducers: <R extends ActionReducer<DaffAuthorizeNetReducersState, import("@ngrx/store").Action<string>> = ActionReducer<DaffAuthorizeNetReducersState, import("@ngrx/store").Action<string>>>(...values: R[]) => Array<import("@angular/core").ValueProvider>;
|
|
99
|
+
export declare const daffAuthorizeNetReducerInitialState: DaffAuthorizeNetReducerState;
|
|
100
|
+
export interface DaffAuthorizeNetMemoizedSelectors {
|
|
101
|
+
selectAuthorizeNetFeatureState: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffAuthorizeNetReducersState>;
|
|
102
|
+
selectAuthorizeNetState: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffAuthorizeNetReducerState>;
|
|
103
|
+
selectLoading: MemoizedSelector<DaffAuthorizeNetStateRootSlice, boolean>;
|
|
104
|
+
selectPaymentError: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffStateError>;
|
|
105
|
+
selectAcceptJsLoadError: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffStateError>;
|
|
106
|
+
selectIsAcceptJsLoaded: MemoizedSelector<DaffAuthorizeNetStateRootSlice, boolean>;
|
|
107
|
+
}
|
|
108
|
+
export declare const daffAuthorizeNetSelectors: () => DaffAuthorizeNetMemoizedSelectors;
|
|
109
|
+
export interface DaffAuthorizeNetStateConfig {
|
|
110
|
+
/**
|
|
111
|
+
* How many times Daffodil will retry the Accept.js load.
|
|
112
|
+
* Defaults to 5.
|
|
113
|
+
*/
|
|
114
|
+
acceptMaxRetries: number;
|
|
115
|
+
/**
|
|
116
|
+
* The Accept.js loading retry backoff timing in milliseconds.
|
|
117
|
+
* Defaults to 30.
|
|
118
|
+
*/
|
|
119
|
+
acceptBackoffTiming: number;
|
|
120
|
+
}
|
|
121
|
+
export declare const daffAuthorizeNetStateDefaultConfig: DaffAuthorizeNetStateConfig;
|
|
122
|
+
export declare const DAFF_AUTHORIZE_NET_STATE_CONFIG: import("@angular/core").InjectionToken<DaffAuthorizeNetStateConfig>, provideDaffAuthorizeNetStateConfig: <R extends DaffAuthorizeNetStateConfig = DaffAuthorizeNetStateConfig>(config: Partial<R> | import("@angular/core").InjectionToken<Partial<R>>) => import("@angular/core").FactoryProvider;
|
|
138
123
|
/**
|
|
139
124
|
* Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.
|
|
140
125
|
* Can be used to further refine Daffodil errors into more specific app errors.
|
|
141
126
|
*/
|
|
142
|
-
declare const DAFF_AUTHORIZENET_ERROR_MATCHER:
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
127
|
+
export declare const DAFF_AUTHORIZENET_ERROR_MATCHER: import("@angular/core").InjectionToken<typeof daffTransformErrorToStateError>, provideDaffAuthorizenetErrorMatcher: <R extends typeof daffTransformErrorToStateError = typeof daffTransformErrorToStateError>(value: R) => import("@angular/core").ValueProvider;
|
|
128
|
+
export interface DaffAuthorizeNetFacadeInterface extends DaffStoreFacade<Action> {
|
|
129
|
+
isAcceptJsLoaded$: Observable<boolean>;
|
|
130
|
+
loading$: Observable<boolean>;
|
|
131
|
+
paymentError$: Observable<DaffStateError>;
|
|
132
|
+
acceptJsLoadError$: Observable<DaffStateError>;
|
|
133
|
+
}
|
|
134
|
+
export declare class DaffAuthorizeNetFacade implements DaffAuthorizeNetFacadeInterface {
|
|
135
|
+
private store;
|
|
136
|
+
isAcceptJsLoaded$: Observable<boolean>;
|
|
137
|
+
loading$: Observable<boolean>;
|
|
138
|
+
paymentError$: Observable<DaffStateError>;
|
|
139
|
+
acceptJsLoadError$: Observable<DaffStateError>;
|
|
140
|
+
constructor(store: Store<DaffAuthorizeNetStateRootSlice>);
|
|
141
|
+
dispatch(action: Action): void;
|
|
142
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetFacade, never>;
|
|
143
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* @deprecated in favor of {@link provideDaffAuthorizeNetState} Deprecated in version 0.95.0. Will be removed in version 0.98.0.
|
|
147
|
+
*/
|
|
148
|
+
export declare class DaffAuthorizeNetStateModule {
|
|
149
|
+
static withConfig(config?: Partial<DaffAuthorizeNetStateConfig>): ModuleWithProviders<DaffAuthorizeNetStateModule>;
|
|
150
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetStateModule, never>;
|
|
151
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAuthorizeNetStateModule, never, [typeof i1$1.StoreFeatureModule, typeof i2.EffectsFeatureModule], never>;
|
|
152
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DaffAuthorizeNetStateModule>;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @deprecated in favor of {@link provideDaffAuthorizeNetPaymentState} Deprecated in version 0.95.0. Will be removed in version 0.98.0.
|
|
156
|
+
*/
|
|
157
|
+
export declare class DaffAuthorizeNetPaymentStateModule {
|
|
158
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetPaymentStateModule, never>;
|
|
159
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAuthorizeNetPaymentStateModule, never, [typeof i1.DaffPaymentStateModule], never>;
|
|
160
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DaffAuthorizeNetPaymentStateModule>;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Provides the `@daffodil/authorizenet/state` feature state and effects.
|
|
164
|
+
* The passed config is merged over {@link daffAuthorizeNetStateDefaultConfig}.
|
|
165
|
+
*/
|
|
166
|
+
export declare const provideDaffAuthorizeNetState: (config?: Partial<DaffAuthorizeNetStateConfig>) => EnvironmentProviders;
|
|
167
|
+
/**
|
|
168
|
+
* Registers Authorize.Net as an available payment processor with `@daffodil/payment/state`.
|
|
169
|
+
* Includes {@link provideDaffPaymentState}.
|
|
170
|
+
*/
|
|
171
|
+
export declare const provideDaffAuthorizeNetPaymentState: () => EnvironmentProviders;
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
import { DaffAuthorizeNetCreditCard } from
|
|
2
|
-
import { DaffModelFactory } from
|
|
3
|
-
import * as i0 from
|
|
4
|
-
|
|
1
|
+
import { DaffAuthorizeNetCreditCard } from "@daffodil/authorizenet";
|
|
2
|
+
import { DaffModelFactory } from "@daffodil/core/testing";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* Mock class for {@link DaffAuthorizeNetCreditCard}.
|
|
7
6
|
*/
|
|
8
|
-
declare class MockDaffAuthorizeNetCreditCard implements DaffAuthorizeNetCreditCard {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
export declare class MockDaffAuthorizeNetCreditCard implements DaffAuthorizeNetCreditCard {
|
|
8
|
+
cardnumber: string;
|
|
9
|
+
month: string;
|
|
10
|
+
year: string;
|
|
11
|
+
securitycode: string;
|
|
13
12
|
}
|
|
14
13
|
/**
|
|
15
14
|
* Model factory for {@link DaffAuthorizeNetCreditCard}.
|
|
16
15
|
*/
|
|
17
|
-
declare class DaffAuthorizeNetCreditCardFactory extends DaffModelFactory<DaffAuthorizeNetCreditCard, typeof MockDaffAuthorizeNetCreditCard> {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { DaffAuthorizeNetCreditCardFactory, MockDaffAuthorizeNetCreditCard };
|
|
16
|
+
export declare class DaffAuthorizeNetCreditCardFactory extends DaffModelFactory<DaffAuthorizeNetCreditCard, typeof MockDaffAuthorizeNetCreditCard> {
|
|
17
|
+
constructor();
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetCreditCardFactory, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
20
|
+
}
|
|
@@ -1,69 +1,57 @@
|
|
|
1
|
-
import { DaffPaymentRequest, DaffPaymentResponse } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
interface
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
declare
|
|
57
|
-
|
|
58
|
-
private doc;
|
|
59
|
-
constructor(production: boolean, doc: any);
|
|
60
|
-
load(): void;
|
|
61
|
-
getAccept(): AcceptType;
|
|
62
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAcceptJsLoadingService, never>;
|
|
63
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffAcceptJsLoadingService>;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
declare const DAFF_AUTHORIZENET_ACCEPT_JS_PRODUCTION: i0.InjectionToken<boolean>;
|
|
67
|
-
|
|
68
|
-
export { DAFF_AUTHORIZENET_ACCEPT_JS_PRODUCTION, DAFF_AUTHORIZENET_PAYMENT_KIND, DaffAcceptJsLoadingService };
|
|
69
|
-
export type { AcceptType, AuthorizeNetCreditCard, AuthorizeNetMessage, AuthorizeNetRequest, AuthorizeNetResponse, DaffAuthorizeNetCreditCard, DaffAuthorizeNetTokenRequest, DaffAuthorizenetPaymentRequest, DaffAuthorizenetPaymentResponse };
|
|
1
|
+
import { DaffPaymentRequest, DaffPaymentResponse } from "@daffodil/payment";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface DaffAuthorizeNetCreditCard {
|
|
4
|
+
cardnumber: string;
|
|
5
|
+
month: string;
|
|
6
|
+
year: string;
|
|
7
|
+
securitycode: string;
|
|
8
|
+
}
|
|
9
|
+
export interface DaffAuthorizeNetTokenRequest {
|
|
10
|
+
creditCard: DaffAuthorizeNetCreditCard;
|
|
11
|
+
}
|
|
12
|
+
export interface AuthorizeNetRequest {
|
|
13
|
+
cardData: AuthorizeNetCreditCard;
|
|
14
|
+
authData: {
|
|
15
|
+
clientKey: string;
|
|
16
|
+
apiLoginID: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface AuthorizeNetCreditCard {
|
|
20
|
+
cardNumber: string;
|
|
21
|
+
cardCode: string;
|
|
22
|
+
month: string;
|
|
23
|
+
year: string;
|
|
24
|
+
}
|
|
25
|
+
export interface AuthorizeNetMessage {
|
|
26
|
+
code: string;
|
|
27
|
+
text: string;
|
|
28
|
+
}
|
|
29
|
+
export interface AuthorizeNetResponse {
|
|
30
|
+
opaqueData: {
|
|
31
|
+
dataDescriptor: string;
|
|
32
|
+
dataValue: string;
|
|
33
|
+
};
|
|
34
|
+
messages: {
|
|
35
|
+
resultCode: string;
|
|
36
|
+
message: AuthorizeNetMessage[];
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export interface AcceptType {
|
|
40
|
+
dispatchData(request: AuthorizeNetRequest, callback: Function): void;
|
|
41
|
+
}
|
|
42
|
+
export declare const DAFF_AUTHORIZENET_PAYMENT_KIND = "daffAuthorizenet";
|
|
43
|
+
export interface DaffAuthorizenetPaymentRequest extends DaffPaymentRequest<DaffAuthorizeNetTokenRequest> {
|
|
44
|
+
kind: typeof DAFF_AUTHORIZENET_PAYMENT_KIND;
|
|
45
|
+
}
|
|
46
|
+
export type DaffAuthorizenetPaymentResponse = DaffPaymentResponse;
|
|
47
|
+
export declare class DaffAcceptJsLoadingService {
|
|
48
|
+
private production;
|
|
49
|
+
private doc;
|
|
50
|
+
constructor(production: boolean, doc: any);
|
|
51
|
+
load(): void;
|
|
52
|
+
getAccept(): AcceptType;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAcceptJsLoadingService, never>;
|
|
54
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
55
|
+
}
|
|
56
|
+
declare const DAFF_AUTHORIZENET_ACCEPT_JS_PRODUCTION: import("@angular/core").InjectionToken<boolean>, provideDaffAuthorizenetAcceptJsProduction: <R extends boolean = boolean>(value: R) => import("@angular/core").ValueProvider;
|
|
57
|
+
export { DAFF_AUTHORIZENET_ACCEPT_JS_PRODUCTION };
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { Inject, Injectable, NgModule } from '@angular/core';
|
|
4
|
-
import { DaffAuthorizeNetUnconfiguredError, DAFF_AUTHORIZE_NET_ERROR_CODE_MAP, DaffAuthorizeNetConfigToken, provideDaffAuthorizeNetConfigToken, provideDaffAuthorizeNetDriver, provideDaffAuthorizeNetPaymentDriver, provideDaffAuthorizeNetPaymentId } from '@daffodil/authorizenet/driver';
|
|
5
|
-
import { Observable, map } from 'rxjs';
|
|
6
|
-
import * as i1 from '@daffodil/authorizenet';
|
|
7
|
-
|
|
8
|
-
const MAGENTO_AUTHORIZE_NET_PAYMENT_ID = 'authorizenet_acceptjs';
|
|
9
|
-
|
|
10
|
-
function transformMagentoAuthorizeNetRequest(request, config) {
|
|
11
|
-
return {
|
|
12
|
-
cardData: {
|
|
13
|
-
cardNumber: request.creditCard.cardnumber,
|
|
14
|
-
cardCode: request.creditCard.securitycode,
|
|
15
|
-
month: request.creditCard.month,
|
|
16
|
-
year: request.creditCard.year,
|
|
17
|
-
},
|
|
18
|
-
authData: {
|
|
19
|
-
clientKey: config.clientKey,
|
|
20
|
-
apiLoginID: config.apiLoginID,
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
;
|
|
25
|
-
function transformMagentoAuthorizeNetResponse(response, ccNumber) {
|
|
26
|
-
return {
|
|
27
|
-
code: 'authorizenet_acceptjs',
|
|
28
|
-
authorizenet_acceptjs: {
|
|
29
|
-
cc_last_4: parseInt(ccNumber.slice(ccNumber.length - 4), 10),
|
|
30
|
-
opaque_data_descriptor: 'COMMON.ACCEPT.INAPP.PAYMENT',
|
|
31
|
-
opaque_data_value: response.opaqueData.dataValue,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
class DaffMagentoAuthorizeNetService {
|
|
37
|
-
constructor(config, acceptJsLoader) {
|
|
38
|
-
this.config = config;
|
|
39
|
-
this.acceptJsLoader = acceptJsLoader;
|
|
40
|
-
if (!this.config?.apiLoginID || !this.config?.clientKey) {
|
|
41
|
-
throw new DaffAuthorizeNetUnconfiguredError('`apiLoginID` and `clientKey` are empty, are you missing your Authorize.net Credentials?');
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
generateToken(paymentTokenRequest) {
|
|
45
|
-
return new Observable(observer => {
|
|
46
|
-
this.acceptJsLoader.getAccept().dispatchData(transformMagentoAuthorizeNetRequest(paymentTokenRequest, this.config), (response) => {
|
|
47
|
-
if (response.messages.resultCode === 'Error') {
|
|
48
|
-
const MappedError = DAFF_AUTHORIZE_NET_ERROR_CODE_MAP[response.messages.message[0].code];
|
|
49
|
-
const message = response.messages.message[0].code + ': ' + response.messages.message[0].text;
|
|
50
|
-
throw MappedError ? new MappedError(message) : new Error(message);
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
observer.next(transformMagentoAuthorizeNetResponse(response, paymentTokenRequest.creditCard.cardnumber));
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffMagentoAuthorizeNetService, deps: [{ token: DaffAuthorizeNetConfigToken }, { token: i1.DaffAcceptJsLoadingService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
59
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffMagentoAuthorizeNetService, providedIn: 'root' }); }
|
|
60
|
-
}
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffMagentoAuthorizeNetService, decorators: [{
|
|
62
|
-
type: Injectable,
|
|
63
|
-
args: [{
|
|
64
|
-
providedIn: 'root',
|
|
65
|
-
}]
|
|
66
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
67
|
-
type: Inject,
|
|
68
|
-
args: [DaffAuthorizeNetConfigToken]
|
|
69
|
-
}] }, { type: i1.DaffAcceptJsLoadingService }] });
|
|
70
|
-
|
|
71
|
-
class DaffMagentoAuthorizeNetPaymentService {
|
|
72
|
-
constructor(authorizenetService) {
|
|
73
|
-
this.authorizenetService = authorizenetService;
|
|
74
|
-
}
|
|
75
|
-
generateToken(request) {
|
|
76
|
-
return this.authorizenetService.generateToken(request.data).pipe(map(response => ({
|
|
77
|
-
method: 'anet',
|
|
78
|
-
data: response,
|
|
79
|
-
})));
|
|
80
|
-
}
|
|
81
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffMagentoAuthorizeNetPaymentService, deps: [{ token: DaffMagentoAuthorizeNetService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
82
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffMagentoAuthorizeNetPaymentService, providedIn: 'root' }); }
|
|
83
|
-
}
|
|
84
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffMagentoAuthorizeNetPaymentService, decorators: [{
|
|
85
|
-
type: Injectable,
|
|
86
|
-
args: [{
|
|
87
|
-
providedIn: 'root',
|
|
88
|
-
}]
|
|
89
|
-
}], ctorParameters: () => [{ type: DaffMagentoAuthorizeNetService }] });
|
|
90
|
-
|
|
91
|
-
class DaffMagentoAuthorizeNetDriverModule {
|
|
92
|
-
static forRoot(config) {
|
|
93
|
-
if (!config.apiLoginID || !config.clientKey) {
|
|
94
|
-
throw Error('You must provide an apiLoginID and clientKey for Authorize.Net configuration.');
|
|
95
|
-
}
|
|
96
|
-
return {
|
|
97
|
-
ngModule: DaffMagentoAuthorizeNetDriverModule,
|
|
98
|
-
providers: [
|
|
99
|
-
provideDaffAuthorizeNetConfigToken(config),
|
|
100
|
-
provideDaffAuthorizeNetDriver(DaffMagentoAuthorizeNetService),
|
|
101
|
-
provideDaffAuthorizeNetPaymentDriver(DaffMagentoAuthorizeNetPaymentService),
|
|
102
|
-
provideDaffAuthorizeNetPaymentId(MAGENTO_AUTHORIZE_NET_PAYMENT_ID),
|
|
103
|
-
],
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffMagentoAuthorizeNetDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
107
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: DaffMagentoAuthorizeNetDriverModule, imports: [CommonModule] }); }
|
|
108
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffMagentoAuthorizeNetDriverModule, imports: [CommonModule] }); }
|
|
109
|
-
}
|
|
110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffMagentoAuthorizeNetDriverModule, decorators: [{
|
|
111
|
-
type: NgModule,
|
|
112
|
-
args: [{
|
|
113
|
-
imports: [
|
|
114
|
-
CommonModule,
|
|
115
|
-
],
|
|
116
|
-
}]
|
|
117
|
-
}] });
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Generated bundle index. Do not edit.
|
|
121
|
-
*/
|
|
122
|
-
|
|
123
|
-
export { DaffMagentoAuthorizeNetDriverModule, DaffMagentoAuthorizeNetPaymentService, DaffMagentoAuthorizeNetService, MAGENTO_AUTHORIZE_NET_PAYMENT_ID };
|
|
124
|
-
//# sourceMappingURL=daffodil-authorizenet-driver-magento.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-authorizenet-driver-magento.mjs","sources":["../../../libs/authorizenet/driver/magento/src/authorize-net-payment-id.ts","../../../libs/authorizenet/driver/magento/src/transformers/authorize-net-transformer.ts","../../../libs/authorizenet/driver/magento/src/authorize-net.service.ts","../../../libs/authorizenet/driver/magento/src/payment.service.ts","../../../libs/authorizenet/driver/magento/src/authorize-net.module.ts","../../../libs/authorizenet/driver/magento/src/daffodil-authorizenet-driver-magento.ts"],"sourcesContent":["export const MAGENTO_AUTHORIZE_NET_PAYMENT_ID = 'authorizenet_acceptjs';\n","import {\n DaffAuthorizeNetTokenRequest,\n AuthorizeNetResponse,\n AuthorizeNetRequest,\n} from '@daffodil/authorizenet';\nimport { DaffAuthorizeNetConfig } from '@daffodil/authorizenet/driver';\n\nimport { MagentoAuthorizeNetPayment } from '../models/authorize-net-payment';\n\nexport function transformMagentoAuthorizeNetRequest(\n request: DaffAuthorizeNetTokenRequest,\n config: DaffAuthorizeNetConfig,\n): AuthorizeNetRequest {\n return {\n cardData: {\n cardNumber: request.creditCard.cardnumber,\n cardCode: request.creditCard.securitycode,\n month: request.creditCard.month,\n year: request.creditCard.year,\n },\n authData: {\n clientKey: config.clientKey,\n apiLoginID: config.apiLoginID,\n },\n };\n};\n\nexport function transformMagentoAuthorizeNetResponse(response: AuthorizeNetResponse, ccNumber: string): MagentoAuthorizeNetPayment {\n return {\n code: 'authorizenet_acceptjs',\n authorizenet_acceptjs: {\n cc_last_4: parseInt(ccNumber.slice(ccNumber.length - 4), 10),\n opaque_data_descriptor: 'COMMON.ACCEPT.INAPP.PAYMENT',\n opaque_data_value: response.opaqueData.dataValue,\n },\n };\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport {\n DaffAuthorizeNetTokenRequest,\n AuthorizeNetResponse,\n DaffAcceptJsLoadingService,\n} from '@daffodil/authorizenet';\nimport {\n DaffAuthorizeNetService,\n DaffAuthorizeNetConfigToken,\n DaffAuthorizeNetConfig,\n DAFF_AUTHORIZE_NET_ERROR_CODE_MAP,\n DaffAuthorizeNetUnconfiguredError,\n} from '@daffodil/authorizenet/driver';\n\nimport { MagentoAuthorizeNetPayment } from './models/authorize-net-payment';\nimport {\n transformMagentoAuthorizeNetRequest,\n transformMagentoAuthorizeNetResponse,\n} from './transformers/authorize-net-transformer';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoAuthorizeNetService implements DaffAuthorizeNetService {\n\n constructor(\n @Inject(DaffAuthorizeNetConfigToken) public config: DaffAuthorizeNetConfig,\n private acceptJsLoader: DaffAcceptJsLoadingService,\n ) {\n if (!this.config?.apiLoginID || !this.config?.clientKey) {\n throw new DaffAuthorizeNetUnconfiguredError(\n '`apiLoginID` and `clientKey` are empty, are you missing your Authorize.net Credentials?',\n );\n }\n }\n\n generateToken(paymentTokenRequest: DaffAuthorizeNetTokenRequest): Observable<MagentoAuthorizeNetPayment> {\n return new Observable(observer => {\n this.acceptJsLoader.getAccept().dispatchData(\n transformMagentoAuthorizeNetRequest(paymentTokenRequest, this.config),\n (response: AuthorizeNetResponse) => {\n if (response.messages.resultCode === 'Error') {\n const MappedError = DAFF_AUTHORIZE_NET_ERROR_CODE_MAP[response.messages.message[0].code];\n const message = response.messages.message[0].code + ': ' + response.messages.message[0].text;\n\n throw MappedError ? new MappedError(message) : new Error(message);\n } else {\n observer.next(transformMagentoAuthorizeNetResponse(response, paymentTokenRequest.creditCard.cardnumber));\n }\n },\n );\n });\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n map,\n Observable,\n} from 'rxjs';\n\nimport {\n DaffAuthorizenetPaymentRequest,\n DaffAuthorizenetPaymentResponse,\n} from '@daffodil/authorizenet';\nimport { DaffAuthorizeNetPaymentDriverInterface } from '@daffodil/authorizenet/driver';\n\nimport { DaffMagentoAuthorizeNetService } from './authorize-net.service';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoAuthorizeNetPaymentService implements DaffAuthorizeNetPaymentDriverInterface {\n constructor(\n private authorizenetService: DaffMagentoAuthorizeNetService,\n ) {}\n\n generateToken(request: DaffAuthorizenetPaymentRequest): Observable<DaffAuthorizenetPaymentResponse> {\n return this.authorizenetService.generateToken(request.data).pipe(\n map(response => ({\n method: 'anet',\n data: response,\n })),\n );\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport {\n DaffAuthorizeNetConfig,\n provideDaffAuthorizeNetConfigToken,\n provideDaffAuthorizeNetDriver,\n provideDaffAuthorizeNetPaymentDriver,\n provideDaffAuthorizeNetPaymentId,\n} from '@daffodil/authorizenet/driver';\n\nimport { MAGENTO_AUTHORIZE_NET_PAYMENT_ID } from './authorize-net-payment-id';\nimport { DaffMagentoAuthorizeNetService } from './authorize-net.service';\nimport { DaffMagentoAuthorizeNetPaymentService } from './payment.service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffMagentoAuthorizeNetDriverModule {\n static forRoot(config: DaffAuthorizeNetConfig): ModuleWithProviders<DaffMagentoAuthorizeNetDriverModule> {\n if(!config.apiLoginID || !config.clientKey) {\n throw Error('You must provide an apiLoginID and clientKey for Authorize.Net configuration.');\n }\n\n return {\n ngModule: DaffMagentoAuthorizeNetDriverModule,\n providers: [\n provideDaffAuthorizeNetConfigToken(config),\n provideDaffAuthorizeNetDriver(DaffMagentoAuthorizeNetService),\n provideDaffAuthorizeNetPaymentDriver(DaffMagentoAuthorizeNetPaymentService),\n provideDaffAuthorizeNetPaymentId(MAGENTO_AUTHORIZE_NET_PAYMENT_ID),\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.DaffMagentoAuthorizeNetService"],"mappings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