@daffodil/authorizenet 0.94.1 → 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.
Files changed (31) hide show
  1. package/fesm2022/daffodil-authorizenet-driver-in-memory.mjs +145 -85
  2. package/fesm2022/daffodil-authorizenet-driver-in-memory.mjs.map +1 -1
  3. package/fesm2022/daffodil-authorizenet-driver-magento-2.4.7.mjs +184 -0
  4. package/fesm2022/daffodil-authorizenet-driver-magento-2.4.7.mjs.map +1 -0
  5. package/fesm2022/daffodil-authorizenet-driver-magento-auto.mjs +7 -0
  6. package/fesm2022/daffodil-authorizenet-driver-magento-auto.mjs.map +1 -0
  7. package/fesm2022/daffodil-authorizenet-driver-testing.mjs +88 -47
  8. package/fesm2022/daffodil-authorizenet-driver-testing.mjs.map +1 -1
  9. package/fesm2022/daffodil-authorizenet-driver.mjs +153 -262
  10. package/fesm2022/daffodil-authorizenet-driver.mjs.map +1 -1
  11. package/fesm2022/daffodil-authorizenet-state-testing.mjs +87 -43
  12. package/fesm2022/daffodil-authorizenet-state-testing.mjs.map +1 -1
  13. package/fesm2022/daffodil-authorizenet-state.mjs +364 -363
  14. package/fesm2022/daffodil-authorizenet-state.mjs.map +1 -1
  15. package/fesm2022/daffodil-authorizenet-testing.mjs +49 -39
  16. package/fesm2022/daffodil-authorizenet-testing.mjs.map +1 -1
  17. package/fesm2022/daffodil-authorizenet.mjs +72 -62
  18. package/fesm2022/daffodil-authorizenet.mjs.map +1 -1
  19. package/package.json +1 -1
  20. package/types/daffodil-authorizenet-driver-in-memory.d.ts +35 -34
  21. package/types/daffodil-authorizenet-driver-magento-2.4.7.d.ts +45 -0
  22. package/types/daffodil-authorizenet-driver-magento-auto.d.ts +1 -0
  23. package/types/daffodil-authorizenet-driver-testing.d.ts +23 -20
  24. package/types/daffodil-authorizenet-driver.d.ts +116 -146
  25. package/types/daffodil-authorizenet-state-testing.d.ts +25 -21
  26. package/types/daffodil-authorizenet-state.d.ts +133 -140
  27. package/types/daffodil-authorizenet-testing.d.ts +13 -16
  28. package/types/daffodil-authorizenet.d.ts +57 -69
  29. package/fesm2022/daffodil-authorizenet-driver-magento.mjs +0 -124
  30. package/fesm2022/daffodil-authorizenet-driver-magento.mjs.map +0 -1
  31. package/types/daffodil-authorizenet-driver-magento.d.ts +0 -44
@@ -1,21 +1,24 @@
1
- import * as i0 from '@angular/core';
2
- import { ModuleWithProviders } from '@angular/core';
3
- import * as i1 from '@angular/common';
4
- import { Observable } from 'rxjs';
5
- import { DaffAuthorizeNetTokenRequest } from '@daffodil/authorizenet';
6
- import { DaffAuthorizeNetService } from '@daffodil/authorizenet/driver';
7
-
8
- declare class DaffTestingAuthorizeNetDriverModule {
9
- static forRoot(): ModuleWithProviders<DaffTestingAuthorizeNetDriverModule>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingAuthorizeNetDriverModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<DaffTestingAuthorizeNetDriverModule, never, [typeof i1.CommonModule], never>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<DaffTestingAuthorizeNetDriverModule>;
1
+ import * as i0 from "@angular/core";
2
+ import { EnvironmentProviders, ModuleWithProviders } from "@angular/core";
3
+ import * as i1 from "@angular/common";
4
+ import { Observable } from "rxjs";
5
+ import { DaffAuthorizeNetTokenRequest } from "@daffodil/authorizenet";
6
+ import { DaffAuthorizeNetService } from "@daffodil/authorizenet/driver";
7
+ /**
8
+ * @deprecated in favor of {@link provideDaffAuthorizeNetTestingDriver} Deprecated in version 0.95.0. Will be removed in version 0.98.0.
9
+ */
10
+ export declare class DaffTestingAuthorizeNetDriverModule {
11
+ static forRoot(): ModuleWithProviders<DaffTestingAuthorizeNetDriverModule>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingAuthorizeNetDriverModule, never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DaffTestingAuthorizeNetDriverModule, never, [typeof i1.CommonModule], never>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<DaffTestingAuthorizeNetDriverModule>;
13
15
  }
14
-
15
- declare class DaffTestingAuthorizeNetService implements DaffAuthorizeNetService {
16
- generateToken(tokenRequest: DaffAuthorizeNetTokenRequest): Observable<any>;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingAuthorizeNetService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingAuthorizeNetService>;
19
- }
20
-
21
- export { DaffTestingAuthorizeNetDriverModule, DaffTestingAuthorizeNetService };
16
+ /**
17
+ * Provides the testing implementations of the `@daffodil/authorizenet/driver` interfaces.
18
+ */
19
+ export declare const provideDaffAuthorizeNetTestingDriver: () => EnvironmentProviders;
20
+ export declare class DaffTestingAuthorizeNetService implements DaffAuthorizeNetService {
21
+ generateToken(tokenRequest: DaffAuthorizeNetTokenRequest): Observable<any>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingAuthorizeNetService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
24
+ }
@@ -1,235 +1,205 @@
1
- import * as _angular_core from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { DaffAuthorizeNetTokenRequest, DaffAuthorizenetPaymentResponse, DaffAuthorizenetPaymentRequest } from '@daffodil/authorizenet';
4
- import { DaffPaymentDriverInterface } from '@daffodil/payment/driver';
5
- import { DaffInheritableError, DaffError } from '@daffodil/core';
6
-
7
- declare const DaffAuthorizeNetConfigToken: _angular_core.InjectionToken<DaffAuthorizeNetConfig>;
8
- declare const provideDaffAuthorizeNetConfigToken: <R extends DaffAuthorizeNetConfig = DaffAuthorizeNetConfig>(value: R) => _angular_core.ValueProvider;
1
+ import { Observable } from "rxjs";
2
+ import { DaffAuthorizeNetTokenRequest, DaffAuthorizenetPaymentRequest, DaffAuthorizenetPaymentResponse } from "@daffodil/authorizenet";
3
+ import { DaffPaymentDriverInterface } from "@daffodil/payment/driver";
4
+ import { DaffError, DaffInheritableError } from "@daffodil/core";
5
+ export declare const DaffAuthorizeNetConfigToken: import("@angular/core").InjectionToken<DaffAuthorizeNetConfig>, provideDaffAuthorizeNetConfigToken: <R extends DaffAuthorizeNetConfig = DaffAuthorizeNetConfig>(value: R) => import("@angular/core").ValueProvider;
9
6
  /**
10
7
  * An interface for providing @daffodil/authorizenet with needed configurations specific to your authorizenet
11
8
  * endpoint.
12
9
  */
13
- interface DaffAuthorizeNetConfig {
14
- clientKey: string;
15
- apiLoginID: string;
10
+ export interface DaffAuthorizeNetConfig {
11
+ clientKey: string;
12
+ apiLoginID: string;
16
13
  }
17
-
18
- declare const DaffAuthorizeNetDriver: _angular_core.InjectionToken<DaffAuthorizeNetService<DaffAuthorizeNetTokenRequest>>;
19
- declare const provideDaffAuthorizeNetDriver: <R extends DaffAuthorizeNetService<DaffAuthorizeNetTokenRequest> = DaffAuthorizeNetService<DaffAuthorizeNetTokenRequest>>(klass: _angular_core.Type<R>) => _angular_core.ExistingProvider;
20
- interface DaffAuthorizeNetService<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest> {
21
- generateToken(paymentTokenRequest: T): Observable<any>;
14
+ export declare const DaffAuthorizeNetDriver: import("@angular/core").InjectionToken<DaffAuthorizeNetService<DaffAuthorizeNetTokenRequest>>, provideDaffAuthorizeNetDriver: <R extends DaffAuthorizeNetService<DaffAuthorizeNetTokenRequest> = DaffAuthorizeNetService<DaffAuthorizeNetTokenRequest>>(klass: import("@angular/core").Type<R>) => import("@angular/core").ExistingProvider;
15
+ export interface DaffAuthorizeNetService<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest> {
16
+ generateToken(paymentTokenRequest: T): Observable<any>;
22
17
  }
23
-
24
- declare const DaffAuthorizeNetPaymentId: _angular_core.InjectionToken<string>;
25
- declare const provideDaffAuthorizeNetPaymentId: <R extends string = string>(value: R) => _angular_core.ValueProvider;
26
-
27
- declare const DaffAuthorizeNetPaymentDriver: _angular_core.InjectionToken<DaffAuthorizeNetPaymentDriverInterface<DaffAuthorizenetPaymentResponse>>;
28
- declare const provideDaffAuthorizeNetPaymentDriver: <R extends DaffAuthorizeNetPaymentDriverInterface<DaffAuthorizenetPaymentResponse> = DaffAuthorizeNetPaymentDriverInterface<DaffAuthorizenetPaymentResponse>>(klass: _angular_core.Type<R>) => _angular_core.ExistingProvider;
18
+ export declare const DaffAuthorizeNetPaymentId: import("@angular/core").InjectionToken<string>, provideDaffAuthorizeNetPaymentId: <R extends string = string>(value: R) => import("@angular/core").ValueProvider;
19
+ export declare const DaffAuthorizeNetPaymentDriver: import("@angular/core").InjectionToken<DaffAuthorizeNetPaymentDriverInterface<DaffAuthorizenetPaymentResponse>>, provideDaffAuthorizeNetPaymentDriver: <R extends DaffAuthorizeNetPaymentDriverInterface<DaffAuthorizenetPaymentResponse> = DaffAuthorizeNetPaymentDriverInterface<DaffAuthorizenetPaymentResponse>>(klass: import("@angular/core").Type<R>) => import("@angular/core").ExistingProvider;
29
20
  /**
30
21
  * @inheritdoc
31
22
  */
32
- interface DaffAuthorizeNetPaymentDriverInterface<T extends DaffAuthorizenetPaymentResponse = DaffAuthorizenetPaymentResponse> extends DaffPaymentDriverInterface<T> {
33
- generateToken(request: DaffAuthorizenetPaymentRequest): Observable<T>;
23
+ export interface DaffAuthorizeNetPaymentDriverInterface<T extends DaffAuthorizenetPaymentResponse = DaffAuthorizenetPaymentResponse> extends DaffPaymentDriverInterface<T> {
24
+ generateToken(request: DaffAuthorizenetPaymentRequest): Observable<T>;
34
25
  }
35
-
36
26
  /**
37
27
  * An error thrown when Accept.js has been loaded incorrectly.
38
28
  * This can be caused by the script being loaded from a local source
39
29
  * or when the browser or proxy has improperly cached an older version of the script.
40
30
  */
41
- declare class DaffAuthorizeNetAcceptjsInvalidError extends DaffInheritableError implements DaffError {
42
- message: string;
43
- readonly code: string;
44
- constructor(message: string);
31
+ export declare class DaffAuthorizeNetAcceptjsInvalidError extends DaffInheritableError implements DaffError {
32
+ message: string;
33
+ readonly code: string;
34
+ constructor(message: string);
45
35
  }
46
-
47
36
  /**
48
37
  * An error thrown when Accept.js has not been loaded.
49
38
  */
50
- declare class DaffAuthorizeNetAcceptjsMissingError extends DaffInheritableError implements DaffError {
51
- message: string;
52
- readonly code: string;
53
- constructor(message: string);
39
+ export declare class DaffAuthorizeNetAcceptjsMissingError extends DaffInheritableError implements DaffError {
40
+ message: string;
41
+ readonly code: string;
42
+ constructor(message: string);
54
43
  }
55
-
56
44
  /**
57
45
  * An error thrown when either the API Login ID or Public Client Key values are incorrect.
58
46
  */
59
- declare class DaffAuthorizeNetAuthFailedError extends DaffInheritableError implements DaffError {
60
- message: string;
61
- readonly code: string;
62
- constructor(message: string);
47
+ export declare class DaffAuthorizeNetAuthFailedError extends DaffInheritableError implements DaffError {
48
+ message: string;
49
+ readonly code: string;
50
+ constructor(message: string);
63
51
  }
64
-
65
52
  /**
66
53
  * An error thrown when required information is missing from the request payload.
67
54
  */
68
- declare class DaffAuthorizeNetInputMissingError extends DaffInheritableError implements DaffError {
69
- message: string;
70
- readonly code: string;
71
- constructor(message: string);
55
+ export declare class DaffAuthorizeNetInputMissingError extends DaffInheritableError implements DaffError {
56
+ message: string;
57
+ readonly code: string;
58
+ constructor(message: string);
72
59
  }
73
-
74
60
  /**
75
61
  * An error thrown when requests are not made over HTTPS.
76
62
  */
77
- declare class DaffAuthorizeNetInsecureConnectionError extends DaffInheritableError implements DaffError {
78
- message: string;
79
- readonly code: string;
80
- constructor(message: string);
63
+ export declare class DaffAuthorizeNetInsecureConnectionError extends DaffInheritableError implements DaffError {
64
+ message: string;
65
+ readonly code: string;
66
+ constructor(message: string);
81
67
  }
82
-
83
68
  /**
84
69
  * An error thrown when the platform response is missing key information or malformed in an unrecoverable way.
85
70
  */
86
- declare class DaffAuthorizeNetInvalidAPIResponseError extends DaffInheritableError implements DaffError {
87
- message: string;
88
- readonly code: string;
89
- constructor(message: string);
71
+ export declare class DaffAuthorizeNetInvalidAPIResponseError extends DaffInheritableError implements DaffError {
72
+ message: string;
73
+ readonly code: string;
74
+ constructor(message: string);
90
75
  }
91
-
92
76
  /**
93
77
  * An error thrown when the credit card cvv number is invalid.
94
78
  */
95
- declare class DaffAuthorizeNetInvalidCCCVVError extends DaffInheritableError implements DaffError {
96
- message: string;
97
- readonly code: string;
98
- constructor(message: string);
79
+ export declare class DaffAuthorizeNetInvalidCCCVVError extends DaffInheritableError implements DaffError {
80
+ message: string;
81
+ readonly code: string;
82
+ constructor(message: string);
99
83
  }
100
-
101
84
  /**
102
85
  * An error thrown when the credit card expiration month is invalid.
103
86
  */
104
- declare class DaffAuthorizeNetInvalidCCExpMonthError extends DaffInheritableError implements DaffError {
105
- message: string;
106
- readonly code: string;
107
- constructor(message: string);
87
+ export declare class DaffAuthorizeNetInvalidCCExpMonthError extends DaffInheritableError implements DaffError {
88
+ message: string;
89
+ readonly code: string;
90
+ constructor(message: string);
108
91
  }
109
-
110
92
  /**
111
93
  * An error thrown when the credit card expiration year is invalid.
112
94
  */
113
- declare class DaffAuthorizeNetInvalidCCExpYearError extends DaffInheritableError implements DaffError {
114
- message: string;
115
- readonly code: string;
116
- constructor(message: string);
95
+ export declare class DaffAuthorizeNetInvalidCCExpYearError extends DaffInheritableError implements DaffError {
96
+ message: string;
97
+ readonly code: string;
98
+ constructor(message: string);
117
99
  }
118
-
119
100
  /**
120
101
  * An error thrown when the cardholder name is invalid.
121
102
  * It should be no more than 64 characters in length.
122
103
  */
123
- declare class DaffAuthorizeNetInvalidCCNameError extends DaffInheritableError implements DaffError {
124
- message: string;
125
- readonly code: string;
126
- constructor(message: string);
104
+ export declare class DaffAuthorizeNetInvalidCCNameError extends DaffInheritableError implements DaffError {
105
+ message: string;
106
+ readonly code: string;
107
+ constructor(message: string);
127
108
  }
128
-
129
109
  /**
130
110
  * An error thrown when the credit card number is invalid.
131
111
  */
132
- declare class DaffAuthorizeNetInvalidCCNumberError extends DaffInheritableError implements DaffError {
133
- message: string;
134
- readonly code: string;
135
- constructor(message: string);
112
+ export declare class DaffAuthorizeNetInvalidCCNumberError extends DaffInheritableError implements DaffError {
113
+ message: string;
114
+ readonly code: string;
115
+ constructor(message: string);
136
116
  }
137
-
138
117
  /**
139
118
  * An error thrown when the `clientKey` value with which the Authorize.net driver has been configured is invalid or missing.
140
119
  *
141
120
  * @see {@link DaffAuthorizeNetConfig}
142
121
  */
143
- declare class DaffAuthorizeNetInvalidClientKeyError extends DaffInheritableError implements DaffError {
144
- message: string;
145
- readonly code: string;
146
- constructor(message: string);
122
+ export declare class DaffAuthorizeNetInvalidClientKeyError extends DaffInheritableError implements DaffError {
123
+ message: string;
124
+ readonly code: string;
125
+ constructor(message: string);
147
126
  }
148
-
149
127
  /**
150
128
  * An error thrown when the `apiLoginID` value with which the Authorize.net driver has been configured is invalid or missing.
151
129
  *
152
130
  * @see {@link DaffAuthorizeNetConfig}
153
131
  */
154
- declare class DaffAuthorizeNetInvalidLoginIdError extends DaffInheritableError implements DaffError {
155
- message: string;
156
- readonly code: string;
157
- constructor(message: string);
132
+ export declare class DaffAuthorizeNetInvalidLoginIdError extends DaffInheritableError implements DaffError {
133
+ message: string;
134
+ readonly code: string;
135
+ constructor(message: string);
158
136
  }
159
-
160
137
  /**
161
138
  * An error thrown when the postal code is invalid.
162
139
  * It should be no more than 20 characters in length.
163
140
  */
164
- declare class DaffAuthorizeNetInvalidPostalCodeError extends DaffInheritableError implements DaffError {
165
- message: string;
166
- readonly code: string;
167
- constructor(message: string);
141
+ export declare class DaffAuthorizeNetInvalidPostalCodeError extends DaffInheritableError implements DaffError {
142
+ message: string;
143
+ readonly code: string;
144
+ constructor(message: string);
168
145
  }
169
-
170
146
  /**
171
147
  * An error thrown when the credit card expiration date is in the past.
172
148
  */
173
- declare class DaffAuthorizeNetPastCCExpirationError extends DaffInheritableError implements DaffError {
174
- message: string;
175
- readonly code: string;
176
- constructor(message: string);
149
+ export declare class DaffAuthorizeNetPastCCExpirationError extends DaffInheritableError implements DaffError {
150
+ message: string;
151
+ readonly code: string;
152
+ constructor(message: string);
177
153
  }
178
-
179
154
  /**
180
155
  * A mapping from the Authorize.net platform error codes to Daffodil driver error classes.
181
156
  */
182
- declare const DAFF_AUTHORIZE_NET_ERROR_CODE_MAP: {
183
- E_WC_01: typeof DaffAuthorizeNetAcceptjsMissingError;
184
- E_WC_02: typeof DaffAuthorizeNetInsecureConnectionError;
185
- E_WC_03: typeof DaffAuthorizeNetAcceptjsInvalidError;
186
- E_WC_04: typeof DaffAuthorizeNetInputMissingError;
187
- E_WC_05: typeof DaffAuthorizeNetInvalidCCNumberError;
188
- E_WC_06: typeof DaffAuthorizeNetInvalidCCExpMonthError;
189
- E_WC_07: typeof DaffAuthorizeNetInvalidCCExpYearError;
190
- E_WC_08: typeof DaffAuthorizeNetPastCCExpirationError;
191
- E_WC_10: typeof DaffAuthorizeNetInvalidLoginIdError;
192
- E_WC_13: typeof DaffAuthorizeNetAcceptjsInvalidError;
193
- E_WC_15: typeof DaffAuthorizeNetInvalidCCCVVError;
194
- E_WC_16: typeof DaffAuthorizeNetInvalidPostalCodeError;
195
- E_WC_17: typeof DaffAuthorizeNetInvalidCCNameError;
196
- E_WC_18: typeof DaffAuthorizeNetInvalidClientKeyError;
197
- E_WC_19: typeof DaffAuthorizeNetInvalidLoginIdError;
198
- E_WC_21: typeof DaffAuthorizeNetAuthFailedError;
199
- E_WC_23: typeof DaffAuthorizeNetInputMissingError;
157
+ export declare const DAFF_AUTHORIZE_NET_ERROR_CODE_MAP: {
158
+ E_WC_01: typeof DaffAuthorizeNetAcceptjsMissingError;
159
+ E_WC_02: typeof DaffAuthorizeNetInsecureConnectionError;
160
+ E_WC_03: typeof DaffAuthorizeNetAcceptjsInvalidError;
161
+ E_WC_04: typeof DaffAuthorizeNetInputMissingError;
162
+ E_WC_05: typeof DaffAuthorizeNetInvalidCCNumberError;
163
+ E_WC_06: typeof DaffAuthorizeNetInvalidCCExpMonthError;
164
+ E_WC_07: typeof DaffAuthorizeNetInvalidCCExpYearError;
165
+ E_WC_08: typeof DaffAuthorizeNetPastCCExpirationError;
166
+ E_WC_10: typeof DaffAuthorizeNetInvalidLoginIdError;
167
+ E_WC_13: typeof DaffAuthorizeNetAcceptjsInvalidError;
168
+ E_WC_15: typeof DaffAuthorizeNetInvalidCCCVVError;
169
+ E_WC_16: typeof DaffAuthorizeNetInvalidPostalCodeError;
170
+ E_WC_17: typeof DaffAuthorizeNetInvalidCCNameError;
171
+ E_WC_18: typeof DaffAuthorizeNetInvalidClientKeyError;
172
+ E_WC_19: typeof DaffAuthorizeNetInvalidLoginIdError;
173
+ E_WC_21: typeof DaffAuthorizeNetAuthFailedError;
174
+ E_WC_23: typeof DaffAuthorizeNetInputMissingError;
200
175
  };
201
-
202
176
  /**
203
177
  * The error codes for Authorize.net driver errors.
204
178
  * See {@link DaffError} and {@link DaffStateError}.
205
179
  */
206
- declare enum DaffAuthorizeNetDriverErrorCodes {
207
- ACCEPTJS_INVALID = "DAFF_AUTHORIZE_NET_ACCEPTJS_INVALID",
208
- ACCEPTJS_MISSING = "DAFF_AUTHORIZE_NET_ACCEPTJS_MISSING",
209
- AUTH_FAILED = "DAFF_AUTHORIZE_NET_AUTH_FAILED",
210
- INPUT_MISSING = "DAFF_AUTHORIZE_NET_INPUT_MISSING",
211
- INSECURE_CONNECTION = "DAFF_AUTHORIZE_NET_INSECURE_CONNECTION",
212
- INVALID_API_RESPONSE = "DAFF_AUTHORIZE_NET_INVALID_API_RESPONSE",
213
- INVALID_CC_CVV = "DAFF_AUTHORIZE_NET_INVALID_CC_CVV",
214
- INVALID_CC_EXP_MONTH = "DAFF_AUTHORIZE_NET_INVALID_CC_EXP_MONTH",
215
- INVALID_CC_EXP_YEAR = "DAFF_AUTHORIZE_NET_INVALID_CC_EXP_YEAR",
216
- INVALID_CC_NAME = "DAFF_AUTHORIZE_NET_INVALID_CC_NAME",
217
- INVALID_CC_NUMBER = "DAFF_AUTHORIZE_NET_INVALID_CC_NUMBER",
218
- INVALID_CLIENT_KEY = "DAFF_AUTHORIZE_NET_INVALID_CLIENT_KEY",
219
- INVALID_LOGIN_ID = "DAFF_AUTHORIZE_NET_INVALID_LOGIN_ID",
220
- INVALID_POSTAL_CODE = "DAFF_AUTHORIZE_NET_INVALID_POSTAL_CODE",
221
- PAST_CC_EXPIRATION = "DAFF_AUTHORIZE_NET_PAST_CC_EXPIRATION",
222
- UNCONFIGURED = "DAFF_AUTHORIZE_NET_UNCONFIGURED"
223
- }
224
-
180
+ export declare enum DaffAuthorizeNetDriverErrorCodes {
181
+ ACCEPTJS_INVALID = "DAFF_AUTHORIZE_NET_ACCEPTJS_INVALID",
182
+ ACCEPTJS_MISSING = "DAFF_AUTHORIZE_NET_ACCEPTJS_MISSING",
183
+ AUTH_FAILED = "DAFF_AUTHORIZE_NET_AUTH_FAILED",
184
+ INPUT_MISSING = "DAFF_AUTHORIZE_NET_INPUT_MISSING",
185
+ INSECURE_CONNECTION = "DAFF_AUTHORIZE_NET_INSECURE_CONNECTION",
186
+ INVALID_API_RESPONSE = "DAFF_AUTHORIZE_NET_INVALID_API_RESPONSE",
187
+ INVALID_CC_CVV = "DAFF_AUTHORIZE_NET_INVALID_CC_CVV",
188
+ INVALID_CC_EXP_MONTH = "DAFF_AUTHORIZE_NET_INVALID_CC_EXP_MONTH",
189
+ INVALID_CC_EXP_YEAR = "DAFF_AUTHORIZE_NET_INVALID_CC_EXP_YEAR",
190
+ INVALID_CC_NAME = "DAFF_AUTHORIZE_NET_INVALID_CC_NAME",
191
+ INVALID_CC_NUMBER = "DAFF_AUTHORIZE_NET_INVALID_CC_NUMBER",
192
+ INVALID_CLIENT_KEY = "DAFF_AUTHORIZE_NET_INVALID_CLIENT_KEY",
193
+ INVALID_LOGIN_ID = "DAFF_AUTHORIZE_NET_INVALID_LOGIN_ID",
194
+ INVALID_POSTAL_CODE = "DAFF_AUTHORIZE_NET_INVALID_POSTAL_CODE",
195
+ PAST_CC_EXPIRATION = "DAFF_AUTHORIZE_NET_PAST_CC_EXPIRATION",
196
+ UNCONFIGURED = "DAFF_AUTHORIZE_NET_UNCONFIGURED"
197
+ }
225
198
  /**
226
199
  * An error thrown when the driver config is missing required information for the driver to function.
227
200
  */
228
- declare class DaffAuthorizeNetUnconfiguredError extends DaffInheritableError implements DaffError {
229
- message: string;
230
- readonly code: string;
231
- constructor(message: string);
232
- }
233
-
234
- export { DAFF_AUTHORIZE_NET_ERROR_CODE_MAP, DaffAuthorizeNetAcceptjsInvalidError, DaffAuthorizeNetAcceptjsMissingError, DaffAuthorizeNetAuthFailedError, DaffAuthorizeNetConfigToken, DaffAuthorizeNetDriver, DaffAuthorizeNetDriverErrorCodes, DaffAuthorizeNetInputMissingError, DaffAuthorizeNetInsecureConnectionError, DaffAuthorizeNetInvalidAPIResponseError, DaffAuthorizeNetInvalidCCCVVError, DaffAuthorizeNetInvalidCCExpMonthError, DaffAuthorizeNetInvalidCCExpYearError, DaffAuthorizeNetInvalidCCNameError, DaffAuthorizeNetInvalidCCNumberError, DaffAuthorizeNetInvalidClientKeyError, DaffAuthorizeNetInvalidLoginIdError, DaffAuthorizeNetInvalidPostalCodeError, DaffAuthorizeNetPastCCExpirationError, DaffAuthorizeNetPaymentDriver, DaffAuthorizeNetPaymentId, DaffAuthorizeNetUnconfiguredError, provideDaffAuthorizeNetConfigToken, provideDaffAuthorizeNetDriver, provideDaffAuthorizeNetPaymentDriver, provideDaffAuthorizeNetPaymentId };
235
- export type { DaffAuthorizeNetConfig, DaffAuthorizeNetPaymentDriverInterface, DaffAuthorizeNetService };
201
+ export declare class DaffAuthorizeNetUnconfiguredError extends DaffInheritableError implements DaffError {
202
+ message: string;
203
+ readonly code: string;
204
+ constructor(message: string);
205
+ }
@@ -1,23 +1,27 @@
1
- import { Action } from '@ngrx/store';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { DaffAuthorizeNetFacadeInterface } from '@daffodil/authorizenet/state';
4
- import { DaffStateError } from '@daffodil/core/state';
5
- import * as i0 from '@angular/core';
6
-
7
- declare class MockDaffAuthorizeNetFacade implements DaffAuthorizeNetFacadeInterface {
8
- isAcceptJsLoaded$: BehaviorSubject<boolean>;
9
- loading$: BehaviorSubject<boolean>;
10
- paymentError$: BehaviorSubject<DaffStateError>;
11
- acceptJsLoadError$: BehaviorSubject<DaffStateError>;
12
- dispatch(action: Action): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<MockDaffAuthorizeNetFacade, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<MockDaffAuthorizeNetFacade>;
1
+ import { Action } from "@ngrx/store";
2
+ import { BehaviorSubject } from "rxjs";
3
+ import { DaffAuthorizeNetFacadeInterface } from "@daffodil/authorizenet/state";
4
+ import { DaffStateError } from "@daffodil/core/state";
5
+ import * as i0 from "@angular/core";
6
+ import { EnvironmentProviders } from "@angular/core";
7
+ export declare class MockDaffAuthorizeNetFacade implements DaffAuthorizeNetFacadeInterface {
8
+ isAcceptJsLoaded$: BehaviorSubject<boolean>;
9
+ loading$: BehaviorSubject<boolean>;
10
+ paymentError$: BehaviorSubject<DaffStateError>;
11
+ acceptJsLoadError$: BehaviorSubject<DaffStateError>;
12
+ dispatch(action: Action): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<MockDaffAuthorizeNetFacade, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
15
15
  }
16
-
17
- declare class DaffAuthorizeNetStateTestingModule {
18
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetStateTestingModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAuthorizeNetStateTestingModule, never, never, never>;
20
- static ɵinj: i0.ɵɵInjectorDeclaration<DaffAuthorizeNetStateTestingModule>;
16
+ /**
17
+ * @deprecated in favor of {@link provideDaffAuthorizeNetStateTesting} Deprecated in version 0.95.0. Will be removed in version 0.98.0.
18
+ */
19
+ export declare class DaffAuthorizeNetStateTestingModule {
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetStateTestingModule, never>;
21
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAuthorizeNetStateTestingModule, never, never, never>;
22
+ static ɵinj: i0.ɵɵInjectorDeclaration<DaffAuthorizeNetStateTestingModule>;
21
23
  }
22
-
23
- export { DaffAuthorizeNetStateTestingModule, MockDaffAuthorizeNetFacade };
24
+ /**
25
+ * Provides the {@link MockDaffAuthorizeNetFacade} for {@link DaffAuthorizeNetFacade}.
26
+ */
27
+ export declare const provideDaffAuthorizeNetStateTesting: () => EnvironmentProviders;