@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.
- 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,267 +1,158 @@
|
|
|
1
|
-
import { createSingleInjectionToken, createSingletonInjectionToken
|
|
2
|
-
|
|
3
|
-
const { token:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
provider: provideDaffAuthorizeNetConfigToken, } = createSingleInjectionToken('DaffAuthorizeNetConfigToken');
|
|
8
|
-
|
|
9
|
-
const { token: DaffAuthorizeNetDriver,
|
|
10
|
-
/**
|
|
11
|
-
* Provider function for {@link DaffAuthorizeNetDriver}.
|
|
12
|
-
*/
|
|
13
|
-
provider: provideDaffAuthorizeNetDriver, } = createSingletonInjectionToken('DaffAuthorizeNetDriver');
|
|
14
|
-
|
|
15
|
-
const { token: DaffAuthorizeNetPaymentId,
|
|
16
|
-
/**
|
|
17
|
-
* Provider function for {@link DaffAuthorizeNetPaymentId}.
|
|
18
|
-
*/
|
|
19
|
-
provider: provideDaffAuthorizeNetPaymentId, } = createSingleInjectionToken('DaffAuthorizeNetPaymentId');
|
|
20
|
-
|
|
21
|
-
const {
|
|
22
|
-
/**
|
|
23
|
-
* An injection token for the authorize.net payment driver.
|
|
24
|
-
*/
|
|
25
|
-
token: DaffAuthorizeNetPaymentDriver,
|
|
26
|
-
/**
|
|
27
|
-
* Provider function for {@link DaffAuthorizeNetPaymentDriver}.
|
|
28
|
-
*/
|
|
29
|
-
provider: provideDaffAuthorizeNetPaymentDriver, } = createSingletonInjectionToken('DaffAuthorizeNetPaymentDriver');
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* The error codes for Authorize.net driver errors.
|
|
33
|
-
* See {@link DaffError} and {@link DaffStateError}.
|
|
34
|
-
*/
|
|
1
|
+
import { DaffInheritableError, createSingleInjectionToken, createSingletonInjectionToken } from "@daffodil/core";
|
|
2
|
+
const { token: DaffAuthorizeNetConfigToken, provider: provideDaffAuthorizeNetConfigToken } = createSingleInjectionToken("DaffAuthorizeNetConfigToken");
|
|
3
|
+
const { token: DaffAuthorizeNetDriver, provider: provideDaffAuthorizeNetDriver } = createSingletonInjectionToken("DaffAuthorizeNetDriver");
|
|
4
|
+
const { token: DaffAuthorizeNetPaymentId, provider: provideDaffAuthorizeNetPaymentId } = createSingleInjectionToken("DaffAuthorizeNetPaymentId");
|
|
5
|
+
const { token: DaffAuthorizeNetPaymentDriver, provider: provideDaffAuthorizeNetPaymentDriver } = createSingletonInjectionToken("DaffAuthorizeNetPaymentDriver");
|
|
35
6
|
var DaffAuthorizeNetDriverErrorCodes;
|
|
36
|
-
(function
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
7
|
+
(function(DaffAuthorizeNetDriverErrorCodes) {
|
|
8
|
+
DaffAuthorizeNetDriverErrorCodes["ACCEPTJS_INVALID"] = "DAFF_AUTHORIZE_NET_ACCEPTJS_INVALID";
|
|
9
|
+
DaffAuthorizeNetDriverErrorCodes["ACCEPTJS_MISSING"] = "DAFF_AUTHORIZE_NET_ACCEPTJS_MISSING";
|
|
10
|
+
DaffAuthorizeNetDriverErrorCodes["AUTH_FAILED"] = "DAFF_AUTHORIZE_NET_AUTH_FAILED";
|
|
11
|
+
DaffAuthorizeNetDriverErrorCodes["INPUT_MISSING"] = "DAFF_AUTHORIZE_NET_INPUT_MISSING";
|
|
12
|
+
DaffAuthorizeNetDriverErrorCodes["INSECURE_CONNECTION"] = "DAFF_AUTHORIZE_NET_INSECURE_CONNECTION";
|
|
13
|
+
DaffAuthorizeNetDriverErrorCodes["INVALID_API_RESPONSE"] = "DAFF_AUTHORIZE_NET_INVALID_API_RESPONSE";
|
|
14
|
+
DaffAuthorizeNetDriverErrorCodes["INVALID_CC_CVV"] = "DAFF_AUTHORIZE_NET_INVALID_CC_CVV";
|
|
15
|
+
DaffAuthorizeNetDriverErrorCodes["INVALID_CC_EXP_MONTH"] = "DAFF_AUTHORIZE_NET_INVALID_CC_EXP_MONTH";
|
|
16
|
+
DaffAuthorizeNetDriverErrorCodes["INVALID_CC_EXP_YEAR"] = "DAFF_AUTHORIZE_NET_INVALID_CC_EXP_YEAR";
|
|
17
|
+
DaffAuthorizeNetDriverErrorCodes["INVALID_CC_NAME"] = "DAFF_AUTHORIZE_NET_INVALID_CC_NAME";
|
|
18
|
+
DaffAuthorizeNetDriverErrorCodes["INVALID_CC_NUMBER"] = "DAFF_AUTHORIZE_NET_INVALID_CC_NUMBER";
|
|
19
|
+
DaffAuthorizeNetDriverErrorCodes["INVALID_CLIENT_KEY"] = "DAFF_AUTHORIZE_NET_INVALID_CLIENT_KEY";
|
|
20
|
+
DaffAuthorizeNetDriverErrorCodes["INVALID_LOGIN_ID"] = "DAFF_AUTHORIZE_NET_INVALID_LOGIN_ID";
|
|
21
|
+
DaffAuthorizeNetDriverErrorCodes["INVALID_POSTAL_CODE"] = "DAFF_AUTHORIZE_NET_INVALID_POSTAL_CODE";
|
|
22
|
+
DaffAuthorizeNetDriverErrorCodes["PAST_CC_EXPIRATION"] = "DAFF_AUTHORIZE_NET_PAST_CC_EXPIRATION";
|
|
23
|
+
DaffAuthorizeNetDriverErrorCodes["UNCONFIGURED"] = "DAFF_AUTHORIZE_NET_UNCONFIGURED";
|
|
53
24
|
})(DaffAuthorizeNetDriverErrorCodes || (DaffAuthorizeNetDriverErrorCodes = {}));
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
class
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
*/
|
|
160
|
-
class DaffAuthorizeNetInvalidCCNameError extends DaffInheritableError {
|
|
161
|
-
constructor(message) {
|
|
162
|
-
super(message);
|
|
163
|
-
this.message = message;
|
|
164
|
-
this.code = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_NAME;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* An error thrown when the credit card number is invalid.
|
|
170
|
-
*/
|
|
171
|
-
class DaffAuthorizeNetInvalidCCNumberError extends DaffInheritableError {
|
|
172
|
-
constructor(message) {
|
|
173
|
-
super(message);
|
|
174
|
-
this.message = message;
|
|
175
|
-
this.code = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_NUMBER;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* An error thrown when the `clientKey` value with which the Authorize.net driver has been configured is invalid or missing.
|
|
181
|
-
*
|
|
182
|
-
* @see {@link DaffAuthorizeNetConfig}
|
|
183
|
-
*/
|
|
184
|
-
class DaffAuthorizeNetInvalidClientKeyError extends DaffInheritableError {
|
|
185
|
-
constructor(message) {
|
|
186
|
-
super(message);
|
|
187
|
-
this.message = message;
|
|
188
|
-
this.code = DaffAuthorizeNetDriverErrorCodes.INVALID_CLIENT_KEY;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* An error thrown when the `apiLoginID` value with which the Authorize.net driver has been configured is invalid or missing.
|
|
194
|
-
*
|
|
195
|
-
* @see {@link DaffAuthorizeNetConfig}
|
|
196
|
-
*/
|
|
197
|
-
class DaffAuthorizeNetInvalidLoginIdError extends DaffInheritableError {
|
|
198
|
-
constructor(message) {
|
|
199
|
-
super(message);
|
|
200
|
-
this.message = message;
|
|
201
|
-
this.code = DaffAuthorizeNetDriverErrorCodes.INVALID_LOGIN_ID;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* An error thrown when the postal code is invalid.
|
|
207
|
-
* It should be no more than 20 characters in length.
|
|
208
|
-
*/
|
|
209
|
-
class DaffAuthorizeNetInvalidPostalCodeError extends DaffInheritableError {
|
|
210
|
-
constructor(message) {
|
|
211
|
-
super(message);
|
|
212
|
-
this.message = message;
|
|
213
|
-
this.code = DaffAuthorizeNetDriverErrorCodes.INVALID_POSTAL_CODE;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* An error thrown when the credit card expiration date is in the past.
|
|
219
|
-
*/
|
|
220
|
-
class DaffAuthorizeNetPastCCExpirationError extends DaffInheritableError {
|
|
221
|
-
constructor(message) {
|
|
222
|
-
super(message);
|
|
223
|
-
this.message = message;
|
|
224
|
-
this.code = DaffAuthorizeNetDriverErrorCodes.PAST_CC_EXPIRATION;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* A mapping from the Authorize.net platform error codes to Daffodil driver error classes.
|
|
230
|
-
*/
|
|
25
|
+
var DaffAuthorizeNetAcceptjsInvalidError = class extends DaffInheritableError {
|
|
26
|
+
constructor(message) {
|
|
27
|
+
super(message);
|
|
28
|
+
this.message = message;
|
|
29
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.ACCEPTJS_INVALID;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
var DaffAuthorizeNetAcceptjsMissingError = class extends DaffInheritableError {
|
|
33
|
+
constructor(message) {
|
|
34
|
+
super(message);
|
|
35
|
+
this.message = message;
|
|
36
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.ACCEPTJS_MISSING;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
var DaffAuthorizeNetAuthFailedError = class extends DaffInheritableError {
|
|
40
|
+
constructor(message) {
|
|
41
|
+
super(message);
|
|
42
|
+
this.message = message;
|
|
43
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.AUTH_FAILED;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
var DaffAuthorizeNetInputMissingError = class extends DaffInheritableError {
|
|
47
|
+
constructor(message) {
|
|
48
|
+
super(message);
|
|
49
|
+
this.message = message;
|
|
50
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.INPUT_MISSING;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
var DaffAuthorizeNetInsecureConnectionError = class extends DaffInheritableError {
|
|
54
|
+
constructor(message) {
|
|
55
|
+
super(message);
|
|
56
|
+
this.message = message;
|
|
57
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.INSECURE_CONNECTION;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
var DaffAuthorizeNetInvalidAPIResponseError = class extends DaffInheritableError {
|
|
61
|
+
constructor(message) {
|
|
62
|
+
super(message);
|
|
63
|
+
this.message = message;
|
|
64
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.INVALID_API_RESPONSE;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
var DaffAuthorizeNetInvalidCCCVVError = class extends DaffInheritableError {
|
|
68
|
+
constructor(message) {
|
|
69
|
+
super(message);
|
|
70
|
+
this.message = message;
|
|
71
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_CVV;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var DaffAuthorizeNetInvalidCCExpMonthError = class extends DaffInheritableError {
|
|
75
|
+
constructor(message) {
|
|
76
|
+
super(message);
|
|
77
|
+
this.message = message;
|
|
78
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_EXP_MONTH;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
var DaffAuthorizeNetInvalidCCExpYearError = class extends DaffInheritableError {
|
|
82
|
+
constructor(message) {
|
|
83
|
+
super(message);
|
|
84
|
+
this.message = message;
|
|
85
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_EXP_YEAR;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
var DaffAuthorizeNetInvalidCCNameError = class extends DaffInheritableError {
|
|
89
|
+
constructor(message) {
|
|
90
|
+
super(message);
|
|
91
|
+
this.message = message;
|
|
92
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_NAME;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
var DaffAuthorizeNetInvalidCCNumberError = class extends DaffInheritableError {
|
|
96
|
+
constructor(message) {
|
|
97
|
+
super(message);
|
|
98
|
+
this.message = message;
|
|
99
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_NUMBER;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
var DaffAuthorizeNetInvalidClientKeyError = class extends DaffInheritableError {
|
|
103
|
+
constructor(message) {
|
|
104
|
+
super(message);
|
|
105
|
+
this.message = message;
|
|
106
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.INVALID_CLIENT_KEY;
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
var DaffAuthorizeNetInvalidLoginIdError = class extends DaffInheritableError {
|
|
110
|
+
constructor(message) {
|
|
111
|
+
super(message);
|
|
112
|
+
this.message = message;
|
|
113
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.INVALID_LOGIN_ID;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
var DaffAuthorizeNetInvalidPostalCodeError = class extends DaffInheritableError {
|
|
117
|
+
constructor(message) {
|
|
118
|
+
super(message);
|
|
119
|
+
this.message = message;
|
|
120
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.INVALID_POSTAL_CODE;
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
var DaffAuthorizeNetPastCCExpirationError = class extends DaffInheritableError {
|
|
124
|
+
constructor(message) {
|
|
125
|
+
super(message);
|
|
126
|
+
this.message = message;
|
|
127
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.PAST_CC_EXPIRATION;
|
|
128
|
+
}
|
|
129
|
+
};
|
|
231
130
|
const DAFF_AUTHORIZE_NET_ERROR_CODE_MAP = {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
131
|
+
E_WC_01: DaffAuthorizeNetAcceptjsMissingError,
|
|
132
|
+
E_WC_02: DaffAuthorizeNetInsecureConnectionError,
|
|
133
|
+
E_WC_03: DaffAuthorizeNetAcceptjsInvalidError,
|
|
134
|
+
E_WC_04: DaffAuthorizeNetInputMissingError,
|
|
135
|
+
E_WC_05: DaffAuthorizeNetInvalidCCNumberError,
|
|
136
|
+
E_WC_06: DaffAuthorizeNetInvalidCCExpMonthError,
|
|
137
|
+
E_WC_07: DaffAuthorizeNetInvalidCCExpYearError,
|
|
138
|
+
E_WC_08: DaffAuthorizeNetPastCCExpirationError,
|
|
139
|
+
E_WC_10: DaffAuthorizeNetInvalidLoginIdError,
|
|
140
|
+
E_WC_13: DaffAuthorizeNetAcceptjsInvalidError,
|
|
141
|
+
E_WC_15: DaffAuthorizeNetInvalidCCCVVError,
|
|
142
|
+
E_WC_16: DaffAuthorizeNetInvalidPostalCodeError,
|
|
143
|
+
E_WC_17: DaffAuthorizeNetInvalidCCNameError,
|
|
144
|
+
E_WC_18: DaffAuthorizeNetInvalidClientKeyError,
|
|
145
|
+
E_WC_19: DaffAuthorizeNetInvalidLoginIdError,
|
|
146
|
+
E_WC_21: DaffAuthorizeNetAuthFailedError,
|
|
147
|
+
E_WC_23: DaffAuthorizeNetInputMissingError
|
|
148
|
+
};
|
|
149
|
+
var DaffAuthorizeNetUnconfiguredError = class extends DaffInheritableError {
|
|
150
|
+
constructor(message) {
|
|
151
|
+
super(message);
|
|
152
|
+
this.message = message;
|
|
153
|
+
this.code = DaffAuthorizeNetDriverErrorCodes.UNCONFIGURED;
|
|
154
|
+
}
|
|
249
155
|
};
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* An error thrown when the driver config is missing required information for the driver to function.
|
|
253
|
-
*/
|
|
254
|
-
class DaffAuthorizeNetUnconfiguredError extends DaffInheritableError {
|
|
255
|
-
constructor(message) {
|
|
256
|
-
super(message);
|
|
257
|
-
this.message = message;
|
|
258
|
-
this.code = DaffAuthorizeNetDriverErrorCodes.UNCONFIGURED;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Generated bundle index. Do not edit.
|
|
264
|
-
*/
|
|
265
|
-
|
|
266
156
|
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 };
|
|
267
|
-
|
|
157
|
+
|
|
158
|
+
//# sourceMappingURL=daffodil-authorizenet-driver.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-authorizenet-driver.mjs","sources":["../../../libs/authorizenet/driver/src/interfaces/authorize-net-config.interface.ts","../../../libs/authorizenet/driver/src/interfaces/authorize-net-service.interface.ts","../../../libs/authorizenet/driver/src/interfaces/authorize-net-payment-id.token.ts","../../../libs/authorizenet/driver/src/interfaces/payment-service.interface.ts","../../../libs/authorizenet/driver/src/errors/error-codes.enum.ts","../../../libs/authorizenet/driver/src/errors/acceptjs_invalid.ts","../../../libs/authorizenet/driver/src/errors/acceptjs_missing.ts","../../../libs/authorizenet/driver/src/errors/auth-failed.ts","../../../libs/authorizenet/driver/src/errors/input-missing.ts","../../../libs/authorizenet/driver/src/errors/insecure-connection.ts","../../../libs/authorizenet/driver/src/errors/invalid-api-response.ts","../../../libs/authorizenet/driver/src/errors/invalid-cc-cvv.ts","../../../libs/authorizenet/driver/src/errors/invalid-cc-exp-month.ts","../../../libs/authorizenet/driver/src/errors/invalid-cc-exp-year.ts","../../../libs/authorizenet/driver/src/errors/invalid-cc-name.ts","../../../libs/authorizenet/driver/src/errors/invalid-cc-number.ts","../../../libs/authorizenet/driver/src/errors/invalid-client-key.ts","../../../libs/authorizenet/driver/src/errors/invalid-login-id.ts","../../../libs/authorizenet/driver/src/errors/invalid-postal-code.ts","../../../libs/authorizenet/driver/src/errors/past-cc-expiration.ts","../../../libs/authorizenet/driver/src/errors/error-code-map.ts","../../../libs/authorizenet/driver/src/errors/unconfigured.ts","../../../libs/authorizenet/driver/src/daffodil-authorizenet-driver.ts"],"sourcesContent":["import { createSingleInjectionToken } from '@daffodil/core';\n\nexport const {\n token: DaffAuthorizeNetConfigToken,\n /**\n * Provider function for {@link DaffAuthorizeNetConfigToken}.\n */\n provider: provideDaffAuthorizeNetConfigToken,\n} = createSingleInjectionToken<DaffAuthorizeNetConfig>('DaffAuthorizeNetConfigToken');\n\n/**\n * An interface for providing @daffodil/authorizenet with needed configurations specific to your authorizenet\n * endpoint.\n */\nexport interface DaffAuthorizeNetConfig {\n clientKey: string;\n apiLoginID: string;\n}\n","import { Observable } from 'rxjs';\n\nimport { DaffAuthorizeNetTokenRequest } from '@daffodil/authorizenet';\nimport { createSingletonInjectionToken } from '@daffodil/core';\n\nexport const {\n token: DaffAuthorizeNetDriver,\n /**\n * Provider function for {@link DaffAuthorizeNetDriver}.\n */\n provider: provideDaffAuthorizeNetDriver,\n} = createSingletonInjectionToken<DaffAuthorizeNetService>('DaffAuthorizeNetDriver');\n\nexport interface DaffAuthorizeNetService<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest> {\n generateToken(paymentTokenRequest: T): Observable<any>;\n}\n","import { createSingleInjectionToken } from '@daffodil/core';\n\nexport const {\n token: DaffAuthorizeNetPaymentId,\n /**\n * Provider function for {@link DaffAuthorizeNetPaymentId}.\n */\n provider: provideDaffAuthorizeNetPaymentId,\n} = createSingleInjectionToken<string>('DaffAuthorizeNetPaymentId');\n","import { Observable } from 'rxjs';\n\nimport {\n DaffAuthorizenetPaymentRequest,\n DaffAuthorizenetPaymentResponse,\n} from '@daffodil/authorizenet';\nimport { createSingletonInjectionToken } from '@daffodil/core';\nimport { DaffPaymentDriverInterface } from '@daffodil/payment/driver';\n\nexport const {\n /**\n * An injection token for the authorize.net payment driver.\n */\n token: DaffAuthorizeNetPaymentDriver,\n /**\n * Provider function for {@link DaffAuthorizeNetPaymentDriver}.\n */\n provider: provideDaffAuthorizeNetPaymentDriver,\n} = createSingletonInjectionToken<DaffAuthorizeNetPaymentDriverInterface>('DaffAuthorizeNetPaymentDriver');\n\n/**\n * @inheritdoc\n */\nexport interface DaffAuthorizeNetPaymentDriverInterface<\n T extends DaffAuthorizenetPaymentResponse = DaffAuthorizenetPaymentResponse,\n> extends DaffPaymentDriverInterface<T> {\n generateToken(request: DaffAuthorizenetPaymentRequest): Observable<T>;\n}\n","/**\n * The error codes for Authorize.net driver errors.\n * See {@link DaffError} and {@link DaffStateError}.\n */\nexport enum DaffAuthorizeNetDriverErrorCodes {\n ACCEPTJS_INVALID = 'DAFF_AUTHORIZE_NET_ACCEPTJS_INVALID',\n ACCEPTJS_MISSING = 'DAFF_AUTHORIZE_NET_ACCEPTJS_MISSING',\n AUTH_FAILED = 'DAFF_AUTHORIZE_NET_AUTH_FAILED',\n INPUT_MISSING = 'DAFF_AUTHORIZE_NET_INPUT_MISSING',\n INSECURE_CONNECTION = 'DAFF_AUTHORIZE_NET_INSECURE_CONNECTION',\n INVALID_API_RESPONSE = 'DAFF_AUTHORIZE_NET_INVALID_API_RESPONSE',\n INVALID_CC_CVV = 'DAFF_AUTHORIZE_NET_INVALID_CC_CVV',\n INVALID_CC_EXP_MONTH = 'DAFF_AUTHORIZE_NET_INVALID_CC_EXP_MONTH',\n INVALID_CC_EXP_YEAR = 'DAFF_AUTHORIZE_NET_INVALID_CC_EXP_YEAR',\n INVALID_CC_NAME = 'DAFF_AUTHORIZE_NET_INVALID_CC_NAME',\n INVALID_CC_NUMBER = 'DAFF_AUTHORIZE_NET_INVALID_CC_NUMBER',\n INVALID_CLIENT_KEY = 'DAFF_AUTHORIZE_NET_INVALID_CLIENT_KEY',\n INVALID_LOGIN_ID = 'DAFF_AUTHORIZE_NET_INVALID_LOGIN_ID',\n INVALID_POSTAL_CODE = 'DAFF_AUTHORIZE_NET_INVALID_POSTAL_CODE',\n PAST_CC_EXPIRATION = 'DAFF_AUTHORIZE_NET_PAST_CC_EXPIRATION',\n UNCONFIGURED = 'DAFF_AUTHORIZE_NET_UNCONFIGURED',\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when Accept.js has been loaded incorrectly.\n * This can be caused by the script being loaded from a local source\n * or when the browser or proxy has improperly cached an older version of the script.\n */\nexport class DaffAuthorizeNetAcceptjsInvalidError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.ACCEPTJS_INVALID;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when Accept.js has not been loaded.\n */\nexport class DaffAuthorizeNetAcceptjsMissingError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.ACCEPTJS_MISSING;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when either the API Login ID or Public Client Key values are incorrect.\n */\nexport class DaffAuthorizeNetAuthFailedError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.AUTH_FAILED;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when required information is missing from the request payload.\n */\nexport class DaffAuthorizeNetInputMissingError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INPUT_MISSING;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when requests are not made over HTTPS.\n */\nexport class DaffAuthorizeNetInsecureConnectionError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INSECURE_CONNECTION;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the platform response is missing key information or malformed in an unrecoverable way.\n */\nexport class DaffAuthorizeNetInvalidAPIResponseError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_API_RESPONSE;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the credit card cvv number is invalid.\n */\nexport class DaffAuthorizeNetInvalidCCCVVError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_CVV;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the credit card expiration month is invalid.\n */\nexport class DaffAuthorizeNetInvalidCCExpMonthError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_EXP_MONTH;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the credit card expiration year is invalid.\n */\nexport class DaffAuthorizeNetInvalidCCExpYearError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_EXP_YEAR;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the cardholder name is invalid.\n * It should be no more than 64 characters in length.\n */\nexport class DaffAuthorizeNetInvalidCCNameError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_NAME;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the credit card number is invalid.\n */\nexport class DaffAuthorizeNetInvalidCCNumberError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_NUMBER;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the `clientKey` value with which the Authorize.net driver has been configured is invalid or missing.\n *\n * @see {@link DaffAuthorizeNetConfig}\n */\nexport class DaffAuthorizeNetInvalidClientKeyError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_CLIENT_KEY;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the `apiLoginID` value with which the Authorize.net driver has been configured is invalid or missing.\n *\n * @see {@link DaffAuthorizeNetConfig}\n */\nexport class DaffAuthorizeNetInvalidLoginIdError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_LOGIN_ID;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the postal code is invalid.\n * It should be no more than 20 characters in length.\n */\nexport class DaffAuthorizeNetInvalidPostalCodeError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_POSTAL_CODE;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the credit card expiration date is in the past.\n */\nexport class DaffAuthorizeNetPastCCExpirationError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.PAST_CC_EXPIRATION;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import { DaffAuthorizeNetAcceptjsInvalidError } from './acceptjs_invalid';\nimport { DaffAuthorizeNetAcceptjsMissingError } from './acceptjs_missing';\nimport { DaffAuthorizeNetAuthFailedError } from './auth-failed';\nimport { DaffAuthorizeNetInputMissingError } from './input-missing';\nimport { DaffAuthorizeNetInsecureConnectionError } from './insecure-connection';\nimport { DaffAuthorizeNetInvalidCCCVVError } from './invalid-cc-cvv';\nimport { DaffAuthorizeNetInvalidCCExpMonthError } from './invalid-cc-exp-month';\nimport { DaffAuthorizeNetInvalidCCExpYearError } from './invalid-cc-exp-year';\nimport { DaffAuthorizeNetInvalidCCNameError } from './invalid-cc-name';\nimport { DaffAuthorizeNetInvalidCCNumberError } from './invalid-cc-number';\nimport { DaffAuthorizeNetInvalidClientKeyError } from './invalid-client-key';\nimport { DaffAuthorizeNetInvalidLoginIdError } from './invalid-login-id';\nimport { DaffAuthorizeNetInvalidPostalCodeError } from './invalid-postal-code';\nimport { DaffAuthorizeNetPastCCExpirationError } from './past-cc-expiration';\n\n/**\n * A mapping from the Authorize.net platform error codes to Daffodil driver error classes.\n */\nexport const DAFF_AUTHORIZE_NET_ERROR_CODE_MAP = {\n E_WC_01: DaffAuthorizeNetAcceptjsMissingError,\n E_WC_02: DaffAuthorizeNetInsecureConnectionError,\n E_WC_03: DaffAuthorizeNetAcceptjsInvalidError,\n E_WC_04: DaffAuthorizeNetInputMissingError,\n E_WC_05: DaffAuthorizeNetInvalidCCNumberError,\n E_WC_06: DaffAuthorizeNetInvalidCCExpMonthError,\n E_WC_07: DaffAuthorizeNetInvalidCCExpYearError,\n E_WC_08: DaffAuthorizeNetPastCCExpirationError,\n E_WC_10: DaffAuthorizeNetInvalidLoginIdError,\n E_WC_13: DaffAuthorizeNetAcceptjsInvalidError,\n E_WC_15: DaffAuthorizeNetInvalidCCCVVError,\n E_WC_16: DaffAuthorizeNetInvalidPostalCodeError,\n E_WC_17: DaffAuthorizeNetInvalidCCNameError,\n E_WC_18: DaffAuthorizeNetInvalidClientKeyError,\n E_WC_19: DaffAuthorizeNetInvalidLoginIdError,\n E_WC_21: DaffAuthorizeNetAuthFailedError,\n E_WC_23: DaffAuthorizeNetInputMissingError,\n};\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the driver config is missing required information for the driver to function.\n */\nexport class DaffAuthorizeNetUnconfiguredError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.UNCONFIGURED;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEO,MAAM,EACX,KAAK,EAAE,2BAA2B;AAClC;;AAEG;AACH,QAAQ,EAAE,kCAAkC,GAC7C,GAAG,0BAA0B,CAAyB,6BAA6B;;ACH7E,MAAM,EACX,KAAK,EAAE,sBAAsB;AAC7B;;AAEG;AACH,QAAQ,EAAE,6BAA6B,GACxC,GAAG,6BAA6B,CAA0B,wBAAwB;;ACT5E,MAAM,EACX,KAAK,EAAE,yBAAyB;AAChC;;AAEG;AACH,QAAQ,EAAE,gCAAgC,GAC3C,GAAG,0BAA0B,CAAS,2BAA2B;;ACC3D,MAAM;AACX;;AAEG;AACH,KAAK,EAAE,6BAA6B;AACpC;;AAEG;AACH,QAAQ,EAAE,oCAAoC,GAC/C,GAAG,6BAA6B,CAAyC,+BAA+B;;AClBzG;;;AAGG;IACS;AAAZ,CAAA,UAAY,gCAAgC,EAAA;AAC1C,IAAA,gCAAA,CAAA,kBAAA,CAAA,GAAA,qCAAwD;AACxD,IAAA,gCAAA,CAAA,kBAAA,CAAA,GAAA,qCAAwD;AACxD,IAAA,gCAAA,CAAA,aAAA,CAAA,GAAA,gCAA8C;AAC9C,IAAA,gCAAA,CAAA,eAAA,CAAA,GAAA,kCAAkD;AAClD,IAAA,gCAAA,CAAA,qBAAA,CAAA,GAAA,wCAA8D;AAC9D,IAAA,gCAAA,CAAA,sBAAA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}
|
|
1
|
+
{"version":3,"file":"daffodil-authorizenet-driver.mjs","names":[],"sources":["../../../libs/authorizenet/driver/src/interfaces/authorize-net-config.interface.ts","../../../libs/authorizenet/driver/src/interfaces/authorize-net-service.interface.ts","../../../libs/authorizenet/driver/src/interfaces/authorize-net-payment-id.token.ts","../../../libs/authorizenet/driver/src/interfaces/payment-service.interface.ts","../../../libs/authorizenet/driver/src/errors/error-codes.enum.ts","../../../libs/authorizenet/driver/src/errors/acceptjs_invalid.ts","../../../libs/authorizenet/driver/src/errors/acceptjs_missing.ts","../../../libs/authorizenet/driver/src/errors/auth-failed.ts","../../../libs/authorizenet/driver/src/errors/input-missing.ts","../../../libs/authorizenet/driver/src/errors/insecure-connection.ts","../../../libs/authorizenet/driver/src/errors/invalid-api-response.ts","../../../libs/authorizenet/driver/src/errors/invalid-cc-cvv.ts","../../../libs/authorizenet/driver/src/errors/invalid-cc-exp-month.ts","../../../libs/authorizenet/driver/src/errors/invalid-cc-exp-year.ts","../../../libs/authorizenet/driver/src/errors/invalid-cc-name.ts","../../../libs/authorizenet/driver/src/errors/invalid-cc-number.ts","../../../libs/authorizenet/driver/src/errors/invalid-client-key.ts","../../../libs/authorizenet/driver/src/errors/invalid-login-id.ts","../../../libs/authorizenet/driver/src/errors/invalid-postal-code.ts","../../../libs/authorizenet/driver/src/errors/past-cc-expiration.ts","../../../libs/authorizenet/driver/src/errors/error-code-map.ts","../../../libs/authorizenet/driver/src/errors/unconfigured.ts"],"sourcesContent":["import { createSingleInjectionToken } from '@daffodil/core';\n\nexport const {\n token: DaffAuthorizeNetConfigToken,\n /**\n * Provider function for {@link DaffAuthorizeNetConfigToken}.\n */\n provider: provideDaffAuthorizeNetConfigToken,\n} = createSingleInjectionToken<DaffAuthorizeNetConfig>('DaffAuthorizeNetConfigToken');\n\n/**\n * An interface for providing @daffodil/authorizenet with needed configurations specific to your authorizenet\n * endpoint.\n */\nexport interface DaffAuthorizeNetConfig {\n clientKey: string;\n apiLoginID: string;\n}\n","import { Observable } from 'rxjs';\n\nimport { DaffAuthorizeNetTokenRequest } from '@daffodil/authorizenet';\nimport { createSingletonInjectionToken } from '@daffodil/core';\n\nexport const {\n token: DaffAuthorizeNetDriver,\n /**\n * Provider function for {@link DaffAuthorizeNetDriver}.\n */\n provider: provideDaffAuthorizeNetDriver,\n} = createSingletonInjectionToken<DaffAuthorizeNetService>('DaffAuthorizeNetDriver');\n\nexport interface DaffAuthorizeNetService<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest> {\n generateToken(paymentTokenRequest: T): Observable<any>;\n}\n","import { createSingleInjectionToken } from '@daffodil/core';\n\nexport const {\n token: DaffAuthorizeNetPaymentId,\n /**\n * Provider function for {@link DaffAuthorizeNetPaymentId}.\n */\n provider: provideDaffAuthorizeNetPaymentId,\n} = createSingleInjectionToken<string>('DaffAuthorizeNetPaymentId');\n","import { Observable } from 'rxjs';\n\nimport {\n DaffAuthorizenetPaymentRequest,\n DaffAuthorizenetPaymentResponse,\n} from '@daffodil/authorizenet';\nimport { createSingletonInjectionToken } from '@daffodil/core';\nimport { DaffPaymentDriverInterface } from '@daffodil/payment/driver';\n\nexport const {\n /**\n * An injection token for the authorize.net payment driver.\n */\n token: DaffAuthorizeNetPaymentDriver,\n /**\n * Provider function for {@link DaffAuthorizeNetPaymentDriver}.\n */\n provider: provideDaffAuthorizeNetPaymentDriver,\n} = createSingletonInjectionToken<DaffAuthorizeNetPaymentDriverInterface>('DaffAuthorizeNetPaymentDriver');\n\n/**\n * @inheritdoc\n */\nexport interface DaffAuthorizeNetPaymentDriverInterface<\n T extends DaffAuthorizenetPaymentResponse = DaffAuthorizenetPaymentResponse,\n> extends DaffPaymentDriverInterface<T> {\n generateToken(request: DaffAuthorizenetPaymentRequest): Observable<T>;\n}\n","/**\n * The error codes for Authorize.net driver errors.\n * See {@link DaffError} and {@link DaffStateError}.\n */\nexport enum DaffAuthorizeNetDriverErrorCodes {\n ACCEPTJS_INVALID = 'DAFF_AUTHORIZE_NET_ACCEPTJS_INVALID',\n ACCEPTJS_MISSING = 'DAFF_AUTHORIZE_NET_ACCEPTJS_MISSING',\n AUTH_FAILED = 'DAFF_AUTHORIZE_NET_AUTH_FAILED',\n INPUT_MISSING = 'DAFF_AUTHORIZE_NET_INPUT_MISSING',\n INSECURE_CONNECTION = 'DAFF_AUTHORIZE_NET_INSECURE_CONNECTION',\n INVALID_API_RESPONSE = 'DAFF_AUTHORIZE_NET_INVALID_API_RESPONSE',\n INVALID_CC_CVV = 'DAFF_AUTHORIZE_NET_INVALID_CC_CVV',\n INVALID_CC_EXP_MONTH = 'DAFF_AUTHORIZE_NET_INVALID_CC_EXP_MONTH',\n INVALID_CC_EXP_YEAR = 'DAFF_AUTHORIZE_NET_INVALID_CC_EXP_YEAR',\n INVALID_CC_NAME = 'DAFF_AUTHORIZE_NET_INVALID_CC_NAME',\n INVALID_CC_NUMBER = 'DAFF_AUTHORIZE_NET_INVALID_CC_NUMBER',\n INVALID_CLIENT_KEY = 'DAFF_AUTHORIZE_NET_INVALID_CLIENT_KEY',\n INVALID_LOGIN_ID = 'DAFF_AUTHORIZE_NET_INVALID_LOGIN_ID',\n INVALID_POSTAL_CODE = 'DAFF_AUTHORIZE_NET_INVALID_POSTAL_CODE',\n PAST_CC_EXPIRATION = 'DAFF_AUTHORIZE_NET_PAST_CC_EXPIRATION',\n UNCONFIGURED = 'DAFF_AUTHORIZE_NET_UNCONFIGURED',\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when Accept.js has been loaded incorrectly.\n * This can be caused by the script being loaded from a local source\n * or when the browser or proxy has improperly cached an older version of the script.\n */\nexport class DaffAuthorizeNetAcceptjsInvalidError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.ACCEPTJS_INVALID;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when Accept.js has not been loaded.\n */\nexport class DaffAuthorizeNetAcceptjsMissingError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.ACCEPTJS_MISSING;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when either the API Login ID or Public Client Key values are incorrect.\n */\nexport class DaffAuthorizeNetAuthFailedError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.AUTH_FAILED;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when required information is missing from the request payload.\n */\nexport class DaffAuthorizeNetInputMissingError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INPUT_MISSING;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when requests are not made over HTTPS.\n */\nexport class DaffAuthorizeNetInsecureConnectionError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INSECURE_CONNECTION;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the platform response is missing key information or malformed in an unrecoverable way.\n */\nexport class DaffAuthorizeNetInvalidAPIResponseError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_API_RESPONSE;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the credit card cvv number is invalid.\n */\nexport class DaffAuthorizeNetInvalidCCCVVError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_CVV;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the credit card expiration month is invalid.\n */\nexport class DaffAuthorizeNetInvalidCCExpMonthError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_EXP_MONTH;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the credit card expiration year is invalid.\n */\nexport class DaffAuthorizeNetInvalidCCExpYearError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_EXP_YEAR;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the cardholder name is invalid.\n * It should be no more than 64 characters in length.\n */\nexport class DaffAuthorizeNetInvalidCCNameError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_NAME;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the credit card number is invalid.\n */\nexport class DaffAuthorizeNetInvalidCCNumberError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_CC_NUMBER;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the `clientKey` value with which the Authorize.net driver has been configured is invalid or missing.\n *\n * @see {@link DaffAuthorizeNetConfig}\n */\nexport class DaffAuthorizeNetInvalidClientKeyError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_CLIENT_KEY;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the `apiLoginID` value with which the Authorize.net driver has been configured is invalid or missing.\n *\n * @see {@link DaffAuthorizeNetConfig}\n */\nexport class DaffAuthorizeNetInvalidLoginIdError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_LOGIN_ID;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the postal code is invalid.\n * It should be no more than 20 characters in length.\n */\nexport class DaffAuthorizeNetInvalidPostalCodeError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.INVALID_POSTAL_CODE;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the credit card expiration date is in the past.\n */\nexport class DaffAuthorizeNetPastCCExpirationError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.PAST_CC_EXPIRATION;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import { DaffAuthorizeNetAcceptjsInvalidError } from './acceptjs_invalid';\nimport { DaffAuthorizeNetAcceptjsMissingError } from './acceptjs_missing';\nimport { DaffAuthorizeNetAuthFailedError } from './auth-failed';\nimport { DaffAuthorizeNetInputMissingError } from './input-missing';\nimport { DaffAuthorizeNetInsecureConnectionError } from './insecure-connection';\nimport { DaffAuthorizeNetInvalidCCCVVError } from './invalid-cc-cvv';\nimport { DaffAuthorizeNetInvalidCCExpMonthError } from './invalid-cc-exp-month';\nimport { DaffAuthorizeNetInvalidCCExpYearError } from './invalid-cc-exp-year';\nimport { DaffAuthorizeNetInvalidCCNameError } from './invalid-cc-name';\nimport { DaffAuthorizeNetInvalidCCNumberError } from './invalid-cc-number';\nimport { DaffAuthorizeNetInvalidClientKeyError } from './invalid-client-key';\nimport { DaffAuthorizeNetInvalidLoginIdError } from './invalid-login-id';\nimport { DaffAuthorizeNetInvalidPostalCodeError } from './invalid-postal-code';\nimport { DaffAuthorizeNetPastCCExpirationError } from './past-cc-expiration';\n\n/**\n * A mapping from the Authorize.net platform error codes to Daffodil driver error classes.\n */\nexport const DAFF_AUTHORIZE_NET_ERROR_CODE_MAP = {\n E_WC_01: DaffAuthorizeNetAcceptjsMissingError,\n E_WC_02: DaffAuthorizeNetInsecureConnectionError,\n E_WC_03: DaffAuthorizeNetAcceptjsInvalidError,\n E_WC_04: DaffAuthorizeNetInputMissingError,\n E_WC_05: DaffAuthorizeNetInvalidCCNumberError,\n E_WC_06: DaffAuthorizeNetInvalidCCExpMonthError,\n E_WC_07: DaffAuthorizeNetInvalidCCExpYearError,\n E_WC_08: DaffAuthorizeNetPastCCExpirationError,\n E_WC_10: DaffAuthorizeNetInvalidLoginIdError,\n E_WC_13: DaffAuthorizeNetAcceptjsInvalidError,\n E_WC_15: DaffAuthorizeNetInvalidCCCVVError,\n E_WC_16: DaffAuthorizeNetInvalidPostalCodeError,\n E_WC_17: DaffAuthorizeNetInvalidCCNameError,\n E_WC_18: DaffAuthorizeNetInvalidClientKeyError,\n E_WC_19: DaffAuthorizeNetInvalidLoginIdError,\n E_WC_21: DaffAuthorizeNetAuthFailedError,\n E_WC_23: DaffAuthorizeNetInputMissingError,\n};\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';\n\n/**\n * An error thrown when the driver config is missing required information for the driver to function.\n */\nexport class DaffAuthorizeNetUnconfiguredError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthorizeNetDriverErrorCodes.UNCONFIGURED;\n\n constructor(public message: string) {\n super(message);\n }\n}\n"],"mappings":";AAEA,MAAa,EACX,OAAO,6BAIP,UAAU,uCACR,2BAAmD,6BAA6B;ACHpF,MAAa,EACX,OAAO,wBAIP,UAAU,kCACR,8BAAuD,wBAAwB;ACTnF,MAAa,EACX,OAAO,2BAIP,UAAU,qCACR,2BAAmC,2BAA2B;ACClE,MAAa,EAIX,OAAO,+BAIP,UAAU,yCACR,8BAAsE,+BAA+B;ACdzG,IAAY;CAAZ,SAAY,kCAAgC;CAC1C,iCAAA,sBAAA;CACA,iCAAA,sBAAA;CACA,iCAAA,iBAAA;CACA,iCAAA,mBAAA;CACA,iCAAA,yBAAA;CACA,iCAAA,0BAAA;CACA,iCAAA,oBAAA;CACA,iCAAA,0BAAA;CACA,iCAAA,yBAAA;CACA,iCAAA,qBAAA;CACA,iCAAA,uBAAA;CACA,iCAAA,wBAAA;CACA,iCAAA,sBAAA;CACA,iCAAA,yBAAA;CACA,iCAAA,wBAAA;CACA,iCAAA,kBAAA;AACF,EAAA,CAjBY,qCAAA,mCAAgC,CAAA,EAAA;ACQ5C,IAAa,uCAAb,cAA0D,qBAAoB;CAG5E,YAAmB,SAAe;EAChC,MAAM,OAAO;EADI,KAAA,UA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